mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-17 15:10:02 +08:00
* libltdl/slist.c (slist_foreach): result was declared as
inner variable, shadowing the actually returned value.
This commit is contained in:
parent
2b104f6438
commit
921d06b537
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user