mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-02-17 15:10:02 +08:00
* libltdl/slist.c (slist_remove): When a matching item is found,
break out of the loop to return the first match; also fixes possible NULL dereference.
This commit is contained in:
parent
1e63751c04
commit
208dd66070
@ -1,5 +1,9 @@
|
||||
2007-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* libltdl/slist.c (slist_remove): When a matching item is found,
|
||||
break out of the loop to return the first match; also fixes
|
||||
possible NULL dereference.
|
||||
|
||||
* libltdl/m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
|
||||
(_LT_LANG_CXX_CONFIG) [ linux ]: Add support for IBM XL 8.0
|
||||
C/C++ (xlc*, xlC*) and IBM XL Fortran 10.1 (xlf*) on GNU/Linux,
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* slist.c -- generalised singly linked lists
|
||||
|
||||
Copyright (C) 2000, 2004 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2004, 2007 Free Software Foundation, Inc.
|
||||
Written by Gary V. Vaughan, 2000
|
||||
|
||||
NOTE: The canonical source of this file is maintained with the
|
||||
@ -101,6 +101,7 @@ slist_remove (SList **phead, SListCallback *find, void *matchdata)
|
||||
{
|
||||
stale = head->next;
|
||||
head->next = stale->next;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user