don't drop core on ^L's; bug report 4.3BSD/usr.bin/234
[unix-history] / usr / src / usr.bin / fsplit / fsplit.c
index 2996f0f..5e3bfd2 100644 (file)
@@ -15,7 +15,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)fsplit.c   5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)fsplit.c   5.5 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <ctype.h>
 #endif /* not lint */
 
 #include <ctype.h>
@@ -262,6 +262,9 @@ char *s;
 
 
        ptr = skiplab(buf);
 
 
        ptr = skiplab(buf);
+       if (ptr == 0)
+               return (0);
+
 
        /*  copy to buffer and converting to lower case */
        p = ptr;
 
        /*  copy to buffer and converting to lower case */
        p = ptr;