]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/slist.c (slist_foreach): result was declared as
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Fri, 1 Oct 2004 10:03:11 +0000 (10:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 1 Oct 2004 10:03:11 +0000 (10:03 +0000)
inner variable, shadowing the actually returned value.

ChangeLog
libltdl/slist.c

index a2cae5bc140f356f171e64c57e9d100d74fdbc28..0db962e5f390266a18f415a936c5bf5487db802f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-10-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * libltdl/slist.c (slist_foreach): result was declared as
+       inner variable, shadowing the actually returned value.
+
        * libltdl/ltdl.c (load_deplibs, try_dlopen): Cast argument
        to isspace/isalnum to the correct range.  Also, cast to int to
        avoid compiler warnings.
index ae2c0590f3cb1bb8704f577fe78e540abd861359..f764b6fe13d91e1d8ba8492233a39b0cd3a78d06 100644 (file)
@@ -241,7 +241,7 @@ slist_foreach (SList *slist, SListCallback *foreach, void *userdata)
   while (slist)
     {
       SList *next = slist->next;
-      void *result = (*foreach) (slist, userdata);
+      result = (*foreach) (slist, userdata);
 
       if (result)
        break;