summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/lpr/lpc/lpc.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr.sbin/lpr/lpc/lpc.c b/usr.sbin/lpr/lpc/lpc.c
index d01c935d2aa0..1f6d39a2f409 100644
--- a/usr.sbin/lpr/lpc/lpc.c
+++ b/usr.sbin/lpr/lpc/lpc.c
@@ -148,12 +148,16 @@ static void
cmdscanner(void)
{
register struct cmd *c;
- static EditLine *el = NULL;
- static History *hist = NULL;
- int num = 0;
- int len;
- const char *bp = NULL;
-
+ static EditLine *el;
+ static History *hist;
+ size_t len;
+ int num;
+ const char *bp;
+
+ num = 0;
+ bp = NULL;
+ el = NULL;
+ hist = NULL;
for (;;) {
if (fromatty) {
if (!el) {