$NetBSD: patch-bb,v 1.1.1.1 2000/02/13 00:14:49 tron Exp $ --- src/queue.c.orig Sat Oct 4 18:46:18 1997 +++ src/queue.c Sat Feb 12 23:28:27 2000 @@ -1070,6 +1070,8 @@ (void) closedir(f); wn++; + if (WorkList == NULL) + return (0); wc = min(wn, WorkListSize); if (wc > MaxQueueRun && MaxQueueRun > 0) wc = MaxQueueRun;