[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lt_dlerror returns "unknown error" instead of NULL

From: Scott James Remnant
Subject: lt_dlerror returns "unknown error" instead of NULL
Date: 02 Aug 2003 02:00:28 +0100

Debian Bug#157229

lt_dlerror() is documented as returning NULL if no error
has occurred.  However the implementation actually returns
the string "unknown error".

Nothing seems to rely on this doc-broken behaviour, so I suggest
correcting lt_dlerror() to return NULL as the documentation says rather
than correcting the documentation :o)

Index: libltdl/ltdl.c
--- libltdl/ltdl.c      (revision 46)
+++ libltdl/ltdl.c      (working copy)
@@ -3924,7 +3924,7 @@
-  return error ? error : LT_DLSTRERROR (UNKNOWN);
+  return error ? error : NULL;
 static int

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

[Prev in Thread] Current Thread [Next in Thread]