=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/dir.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/make/dir.c 1999/12/18 21:53:32 1.11 +++ src/usr.bin/make/dir.c 1999/12/18 21:56:07 1.12 @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.11 1999/12/18 21:53:32 espie Exp $ */ +/* $OpenBSD: dir.c,v 1.12 1999/12/18 21:56:07 espie Exp $ */ /* $NetBSD: dir.c,v 1.14 1997/03/29 16:51:26 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)dir.c 8.2 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: dir.c,v 1.11 1999/12/18 21:53:32 espie Exp $"; +static char rcsid[] = "$OpenBSD: dir.c,v 1.12 1999/12/18 21:56:07 espie Exp $"; #endif #endif /* not lint */ @@ -1228,10 +1228,8 @@ Lst path; /* Path to clear */ { Path *p; - while (!Lst_IsEmpty(path)) { - p = (Path *)Lst_DeQueue(path); - Dir_Destroy((ClientData) p); - } + while ((p = (Path *)Lst_DeQueue(path)) != NULL) + Dir_Destroy((ClientData)p); }