summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/lpd/recvjob.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1998-01-20 14:43:05 +0000
committerwollman <wollman@FreeBSD.org>1998-01-20 14:43:05 +0000
commit28b1a9b7397f7ccc7bb251e8e4e3dafeeb13a142 (patch)
treede5e3d3579cc85787dbd555b425a3ccdf8582e32 /usr.sbin/lpr/lpd/recvjob.c
parent2a7d26ca78deb853b5d0fc77a67f1a95ad3f8a1b (diff)
downloadFreeBSD-src-28b1a9b7397f7ccc7bb251e8e4e3dafeeb13a142.zip
FreeBSD-src-28b1a9b7397f7ccc7bb251e8e4e3dafeeb13a142.tar.gz
Properly initialize the printer struct.
PR: bin/5519
Diffstat (limited to 'usr.sbin/lpr/lpd/recvjob.c')
-rw-r--r--usr.sbin/lpr/lpd/recvjob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/recvjob.c b/usr.sbin/lpr/lpd/recvjob.c
index 6b1c8b0..74fc253 100644
--- a/usr.sbin/lpr/lpd/recvjob.c
+++ b/usr.sbin/lpr/lpd/recvjob.c
@@ -43,7 +43,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)recvjob.c 8.2 (Berkeley) 4/27/95";
#endif
static const char rcsid[] =
- "$Id: recvjob.c,v 1.11 1997/10/06 03:58:48 imp Exp $";
+ "$Id: recvjob.c,v 1.12 1997/12/02 20:45:59 wollman Exp $";
#endif /* not lint */
/*
@@ -94,6 +94,7 @@ recvjob(printer)
/*
* Perform lookup for printer name or abbreviation
*/
+ init_printer(pp);
status = getprintcap(printer, pp);
switch (status) {
case PCAPERR_OSERR:
OpenPOWER on IntegriCloud