diff options
author | Tim Potter <tpot@samba.org> | 2002-03-07 04:29:13 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-03-07 04:29:13 +0000 |
commit | bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1 (patch) | |
tree | 5d1be4a48457176e169bb10cff25b44c493e5b93 | |
parent | d9df00e2b1764619491900b7dbd7d5af34feed1b (diff) | |
download | samba-bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1.tar.gz samba-bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1.tar.xz samba-bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1.zip |
Cosmetic fixup for enum_printers
-rw-r--r-- | source/rpcclient/cmd_spoolss.c | 7 |
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) { |