mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
* libltdl/slist.c (slist_new): Handle malloc failure gracefully.
This commit is contained in:
parent
2d9235e58c
commit
d1f90d0769
@ -1,3 +1,7 @@
|
||||
2004-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||
|
||||
* libltdl/slist.c (slist_new): Handle malloc failure gracefully.
|
||||
|
||||
2004-09-01 Gary V. Vaughan <gary@gnu.org>
|
||||
|
||||
* libtoolize.in, config/ltmain.in: Add CDPATH protection to
|
||||
|
@ -37,8 +37,11 @@ slist_new (const void *userdata)
|
||||
{
|
||||
SList *node = malloc (sizeof *node);
|
||||
|
||||
node->next = 0;
|
||||
node->userdata = userdata;
|
||||
if (node)
|
||||
{
|
||||
node->next = 0;
|
||||
node->userdata = userdata;
|
||||
}
|
||||
|
||||
return node;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user