diff options
author | Jeremy Allison <jra@samba.org> | 2006-03-10 23:52:37 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:15 -0500 |
commit | 5a1c225c18ee778490c2d6f789afc3fad3a34703 (patch) | |
tree | 3bd41929cf6934a52e5529a43aaccf50aa16327a | |
parent | ab43bf3e107d95b0d4e2ae41fb690dbf95bda846 (diff) | |
download | samba-5a1c225c18ee778490c2d6f789afc3fad3a34703.tar.gz samba-5a1c225c18ee778490c2d6f789afc3fad3a34703.tar.bz2 samba-5a1c225c18ee778490c2d6f789afc3fad3a34703.zip |
r14178: Clarify code for Coverity #49. Ensure we know we
can't have an uninitialized *returned val.
Jeremy.
(This used to be commit e83515afd2cb63b0dfa4f7fe00b6b7163bf35f2f)
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 6a1be53738..af413b8b70 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -4484,6 +4484,8 @@ static WERROR enum_all_printers_info_2(RPC_BUFFER *buffer, uint32 offered, uint3 PRINTER_INFO_2 current_prt; WERROR result = WERR_OK; + *returned = 0; + for (snum=0; snum<n_services; snum++) { if (lp_browseable(snum) && lp_snum_ok(snum) && lp_print_ok(snum) ) { DEBUG(4,("Found a printer in smb.conf: %s[%x]\n", lp_servicename(snum), snum)); |