summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-07 04:29:13 +0000
committerTim Potter <tpot@samba.org>2002-03-07 04:29:13 +0000
commitbb0ef8bc305da7490a19a6f4efd2aa60bf14aef1 (patch)
tree5d1be4a48457176e169bb10cff25b44c493e5b93
parentd9df00e2b1764619491900b7dbd7d5af34feed1b (diff)
downloadsamba-bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1.tar.gz
samba-bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1.tar.xz
samba-bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1.zip
Cosmetic fixup for enum_printers
-rw-r--r--source/rpcclient/cmd_spoolss.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/rpcclient/cmd_spoolss.c b/source/rpcclient/cmd_spoolss.c
index a1e3d1f9ff1..5d51e61b40f 100644
--- a/source/rpcclient/cmd_spoolss.c
+++ b/source/rpcclient/cmd_spoolss.c
@@ -339,8 +339,11 @@ static NTSTATUS cmd_spoolss_enum_printers(struct cli_state *cli,
info_level, &num_printers, &ctr);
if (W_ERROR_IS_OK(result)) {
- if (!num_printers)
- printf ("No Printers printers returned.\n");
+
+ if (!num_printers) {
+ printf ("No printers returned.\n");
+ goto done;
+ }
for (i = 0; i < num_printers; i++) {
switch(info_level) {