projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prevent stupid Ambiquous Command error on null input line
[unix-history]
/
usr
/
src
/
usr.sbin
/
lpr
/
lpc
/
lpc.c
diff --git
a/usr/src/usr.sbin/lpr/lpc/lpc.c
b/usr/src/usr.sbin/lpr/lpc/lpc.c
index
47f8621
..
47b84e9
100644
(file)
--- a/
usr/src/usr.sbin/lpr/lpc/lpc.c
+++ b/
usr/src/usr.sbin/lpr/lpc/lpc.c
@@
-22,7
+22,7
@@
char copyright[] =
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)lpc.c 5.
8
(Berkeley) %G%";
+static char sccsid[] = "@(#)lpc.c 5.
9
(Berkeley) %G%";
#endif /* not lint */
/*
#endif /* not lint */
/*
@@
-107,7
+107,7
@@
cmdscanner(top)
}
if (fgets(cmdline, sizeof(cmdline), stdin) == 0)
quit();
}
if (fgets(cmdline, sizeof(cmdline), stdin) == 0)
quit();
- if (cmdline[0] == 0)
+ if (cmdline[0] == 0
|| cmdline[0] == '\n'
)
break;
makeargv();
c = getcmd(margv[0]);
break;
makeargv();
c = getcmd(margv[0]);