summaryrefslogtreecommitdiff
path: root/usr/src/cmd/print
diff options
context:
space:
mode:
authorKeerthi Kondaka <Keerthi.Kondaka@Sun.COM>2009-04-21 16:35:55 -0700
committerKeerthi Kondaka <Keerthi.Kondaka@Sun.COM>2009-04-21 16:35:55 -0700
commite059026e2da8f12ef0ebea9d686d67f32660cfc0 (patch)
tree695c417c9f8a1526c7ea7dc3a93dde1f25b41ab7 /usr/src/cmd/print
parent37c30c18a30adf1c89f3e563208e93e6c7501ded (diff)
downloadillumos-gate-e059026e2da8f12ef0ebea9d686d67f32660cfc0.tar.gz
6783023 lpstat -v dumps core without printer name
Diffstat (limited to 'usr/src/cmd/print')
-rw-r--r--usr/src/cmd/print/bsd-sysv-commands/lpstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
index 789661b2e0..c66dd15720 100644
--- a/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
+++ b/usr/src/cmd/print/bsd-sysv-commands/lpstat.c
@@ -234,7 +234,7 @@ report_device(papi_service_t svc, char *name, papi_printer_t printer,
return (0);
} else if (uri != NULL) {
printf(gettext("system for %s: %s (as %s)\n"), name,
- u->host, uri);
+ u->host?u->host:"localhost", uri);
return (0);
}