mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r14178: Clarify code for Coverity #49. Ensure we know we
can't have an uninitialized *returned val. Jeremy.
This commit is contained in:
parent
e5d6069cf8
commit
e83515afd2
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user