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 | fd7cdf6da437a054ff6d84c89e33e6aca85d6345 (patch) | |
tree | 35f0661ea26a6145b56b9d6d109747833bbea2c9 /source3/rpcclient | |
parent | 6fbd44c77a4512375fab9197e0a03af08d01b57c (diff) | |
download | samba-fd7cdf6da437a054ff6d84c89e33e6aca85d6345.tar.gz samba-fd7cdf6da437a054ff6d84c89e33e6aca85d6345.tar.bz2 samba-fd7cdf6da437a054ff6d84c89e33e6aca85d6345.zip |
Cosmetic fixup for enum_printers
(This used to be commit bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_spoolss.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index a1e3d1f9ff..5d51e61b40 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/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) { |