char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
-/* $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 $ */
/*
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
chkprinter(printer);
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
-/* $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 $ */
/*
char *p;
printer = DEFLP;
- if ((p = getenv("PRINTER"))
+ if ((p = getenv("PRINTER")) == NULL)
printer = p;
}
if (!chkprinter(printer)) {