projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upgraded to the latest NetBSD version
[unix-history]
/
usr
/
src
/
usr.bin
/
make
/
lst.lib
/
lstConcat.c
diff --git
a/usr/src/usr.bin/make/lst.lib/lstConcat.c
b/usr/src/usr.bin/make/lst.lib/lstConcat.c
index
d66daa8
..
5e97576
100644
(file)
--- a/
usr/src/usr.bin/make/lst.lib/lstConcat.c
+++ b/
usr/src/usr.bin/make/lst.lib/lstConcat.c
@@
-9,7
+9,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)lstConcat.c 8.
1
(Berkeley) %G%";
+static char sccsid[] = "@(#)lstConcat.c 8.
2
(Berkeley) %G%";
#endif /* not lint */
/*-
#endif /* not lint */
/*-
@@
-76,6
+76,8
@@
Lst_Concat (l1, l2, flags)
list2->firstPtr->prevPtr = list1->lastPtr;
if (list1->lastPtr != NilListNode) {
list1->lastPtr->nextPtr = list2->firstPtr;
list2->firstPtr->prevPtr = list1->lastPtr;
if (list1->lastPtr != NilListNode) {
list1->lastPtr->nextPtr = list2->firstPtr;
+ } else {
+ list1->firstPtr = list2->firstPtr;
}
list1->lastPtr = list2->lastPtr;
}
}
list1->lastPtr = list2->lastPtr;
}