-a wasn't getting discarded completely; test case is:
[unix-history] / usr / src / usr.bin / find / find.c
index 69d7b2c..3e5e6c7 100644 (file)
@@ -15,7 +15,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)find.c     4.31 (Berkeley) %G%";
+static char sccsid[] = "@(#)find.c     4.32 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -104,7 +104,8 @@ find_formplan(argv)
         * plan->next pointer.
         */
        for (plan = NULL; *argv;) {
         * plan->next pointer.
         */
        for (plan = NULL; *argv;) {
-               new = find_create(&argv);
+               if (!(new = find_create(&argv)))
+                       continue;
                if (plan == NULL)
                        tail = plan = new;
                else {
                if (plan == NULL)
                        tail = plan = new;
                else {