* libltdl/slist.c (slist_foreach): result was declared as

inner variable, shadowing the actually returned value.
This commit is contained in:
Ralf Wildenhues 2004-10-01 10:03:11 +00:00 committed by Gary V. Vaughan
parent 2b104f6438
commit 921d06b537
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View 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;