diff options
Diffstat (limited to 'usr.bin/make/lst.lib/lstConcat.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstConcat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/make/lst.lib/lstConcat.c b/usr.bin/make/lst.lib/lstConcat.c index 330425f..f0c771c 100644 --- a/usr.bin/make/lst.lib/lstConcat.c +++ b/usr.bin/make/lst.lib/lstConcat.c @@ -79,7 +79,8 @@ Lst_Concat(Lst list1, Lst list2, int flags) LstNode nln; /* new LstNode */ LstNode last; /* the last element in the list. Keeps * bookkeeping until the end */ - if (!Lst_Valid (list1) || !Lst_Valid (list2)) { + + if (!Lst_Valid(list1) || !Lst_Valid(list2)) { return (FAILURE); } @@ -119,7 +120,7 @@ Lst_Concat(Lst list1, Lst list2, int flags) list1->firstPtr->prevPtr = list1->lastPtr; list1->lastPtr->nextPtr = list1->firstPtr; } - free (list2); + free(list2); } else if (list2->firstPtr != NULL) { /* * We set the nextPtr of the last element of list 2 to be NULL to make |