Missing ' == NULL)' added...
authorpefo <pefo@openbsd.org>
Mon, 6 May 1996 06:39:38 +0000 (06:39 +0000)
committerpefo <pefo@openbsd.org>
Mon, 6 May 1996 06:39:38 +0000 (06:39 +0000)
usr.sbin/lpr/lpq/lpq.c
usr.sbin/lpr/lpr/lpr.c
usr.sbin/lpr/lprm/lprm.c
usr.sbin/lpr/pac/pac.c

index 8559dc9..bcd0cc0 100644 (file)
@@ -108,7 +108,7 @@ main(argc, argv)
                char *p;
 
                printer = DEFLP;
-               if ((p = getenv("PRINTER"))
+               if ((p = getenv("PRINTER")) == NULL)
                        printer = p;
        }
 
index bd299a8..57c71b3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: lpr.c,v 1.3 1996/05/04 11:52:55 deraadt Exp $ */
+/*     $OpenBSD: lpr.c,v 1.4 1996/05/06 06:40:13 pefo Exp $ */
 /*     $NetBSD: lpr.c,v 1.10 1996/03/21 18:12:25 jtc Exp $     */
 
 /*
@@ -264,7 +264,7 @@ main(argc, argv)
                char *p;
 
                printer = DEFLP;
-               if ((p = getenv("PRINTER"))
+               if ((p = getenv("PRINTER")) == NULL)
                        printer = p;
        }
        chkprinter(printer);
index 88607c2..ea6c5df 100644 (file)
@@ -137,7 +137,7 @@ main(argc, argv)
                char *p;
 
                printer = DEFLP;
-               if ((p = getenv("PRINTER"))
+               if ((p = getenv("PRINTER")) == NULL)
                        printer = p;
        }
 
index 36e15f2..eef6a52 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: pac.c,v 1.4 1996/05/04 11:53:05 deraadt Exp $ */
+/*     $OpenBSD: pac.c,v 1.5 1996/05/06 06:41:13 pefo Exp $ */
 /*     $NetBSD: pac.c,v 1.7 1996/03/21 18:21:20 jtc Exp $      */
 
 /*
@@ -173,7 +173,7 @@ fprintf(stderr,
                char *p;
 
                printer = DEFLP;
-               if ((p = getenv("PRINTER"))
+               if ((p = getenv("PRINTER")) == NULL)
                        printer = p;
        }
        if (!chkprinter(printer)) {