diff options
Diffstat (limited to 'usr.bin/make/lst.lib/lstDupl.c')
-rw-r--r-- | usr.bin/make/lst.lib/lstDupl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/make/lst.lib/lstDupl.c b/usr.bin/make/lst.lib/lstDupl.c index 07d4011..f3d4211 100644 --- a/usr.bin/make/lst.lib/lstDupl.c +++ b/usr.bin/make/lst.lib/lstDupl.c @@ -77,7 +77,7 @@ Lst_Duplicate(Lst list, DuplicateProc *copyProc) return (NULL); } - nl = Lst_Init(list->isCirc); + nl = Lst_Init(); if (nl == NULL) { return (NULL); } @@ -92,11 +92,7 @@ Lst_Duplicate(Lst list, DuplicateProc *copyProc) return (NULL); } - if (list->isCirc && ln == list->lastPtr) { - ln = NULL; - } else { - ln = ln->nextPtr; - } + ln = ln->nextPtr; } return (nl); |