mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s3: Fix Coverity ID 242724 Uninitialized scalar variable
In an error path we are closing pol without opening it
This commit is contained in:
parent
aa220c4981
commit
446791c6bf
@ -2534,7 +2534,7 @@ static WERROR cmd_spoolss_setprinterdata(struct rpc_pipe_client *cli,
|
||||
WERROR result;
|
||||
NTSTATUS status;
|
||||
const char *printername;
|
||||
struct policy_handle pol;
|
||||
struct policy_handle pol = { 0, };
|
||||
union spoolss_PrinterInfo info;
|
||||
enum winreg_Type type;
|
||||
union spoolss_PrinterData data;
|
||||
|
Loading…
x
Reference in New Issue
Block a user