summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print/bsd-sysv-commands/lp.c
diff options
context:
space:
mode:
authorjacobs <none@none>2006-07-17 16:01:33 -0700
committerjacobs <none@none>2006-07-17 16:01:33 -0700
commit179184d3e9bc6ab146407a62a8461338687b1908 (patch)
treef7390426d30e1876c5dd43731b7cf33e48798621 /usr/src/cmd/print/bsd-sysv-commands/lp.c
parent5cb4571d1b794d3be2bb486e9f9d721bc3e7894f (diff)
downloadillumos-joyent-179184d3e9bc6ab146407a62a8461338687b1908.tar.gz
6449207 lp dumped core freeing something
Diffstat (limited to 'usr/src/cmd/print/bsd-sysv-commands/lp.c')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/lp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lp.c b/usr/src/cmd/print/bsd-sysv-commands/lp.c
index 702f1b8d00..a3a1771ada 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/lp.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/lp.c
@@ -25,7 +25,7 @@
*
*/
-/* $Id: lp.c 169 2006-05-20 05:58:14Z njacobs $ */
+/* $Id: lp.c 179 2006-07-17 18:24:07Z njacobs $ */
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -303,12 +303,12 @@ main(int ac, char *av[])
if (((silent == 0) || (dump != 0)) &&
((list = papiJobGetAttributeList(job)) != NULL)) {
- char *dest = "unknown";
int32_t id = 0;
- papiAttributeListGetString(list, NULL, "printer-name", &dest);
+ papiAttributeListGetString(list, NULL,
+ "printer-name", &printer);
papiAttributeListGetInteger(list, NULL, "job-id", &id);
- printf(gettext("request id is %s-%d "), dest, id);
+ printf(gettext("request id is %s-%d "), printer, id);
if (ac != optind)
printf("(%d file(s))\n", ac - optind);
else