diff options
author | Hartmut Brandt <harti@FreeBSD.org> | 2004-11-26 12:17:23 +0000 |
---|---|---|
committer | Hartmut Brandt <harti@FreeBSD.org> | 2004-11-26 12:17:23 +0000 |
commit | 3514b3b581ca57f23eecca891b04fa1d5591417e (patch) | |
tree | ab00e91c580c3743e67b1db587afc97f17349ebd /usr.bin/make/lst.lib/lstFirst.c | |
parent | fb5885af378f02ffb592a92b3811025642a47630 (diff) |
Notes
Diffstat (limited to 'usr.bin/make/lst.lib/lstFirst.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstFirst.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/make/lst.lib/lstFirst.c b/usr.bin/make/lst.lib/lstFirst.c index 56a602af89354..daa83fba0fac8 100644 --- a/usr.bin/make/lst.lib/lstFirst.c +++ b/usr.bin/make/lst.lib/lstFirst.c @@ -62,13 +62,12 @@ __FBSDID("$FreeBSD$"); *----------------------------------------------------------------------- */ LstNode -Lst_First (l) - Lst l; +Lst_First(Lst l) { + if (!LstValid (l) || LstIsEmpty (l)) { return (NULL); } else { return ((LstNode)((List)l)->firstPtr); } } - |