diff options
author | Volker Lendecke <vl@samba.org> | 2011-03-15 10:58:55 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-03-15 11:10:45 +0100 |
commit | 2b26c86fe6727fafef0dd5079fd75a334ea49b63 (patch) | |
tree | 32225819253bfff171bbd4ccc08debd4ad5c19d2 /source3/rpc_server/spoolss | |
parent | c09877113d793f57e43a73fa6ac1e55ab7307047 (diff) | |
download | samba-2b26c86fe6727fafef0dd5079fd75a334ea49b63.tar.gz samba-2b26c86fe6727fafef0dd5079fd75a334ea49b63.tar.bz2 samba-2b26c86fe6727fafef0dd5079fd75a334ea49b63.zip |
s3: Fix Coverity ID 2285: Uninitialized read
We passed the structure including the uninitialized elements to
dcerpc_winreg_DeleteValue.
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_util.c b/source3/rpc_server/spoolss/srv_spoolss_util.c index 049abe40fd..cfbe113c49 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_util.c +++ b/source3/rpc_server/spoolss/srv_spoolss_util.c @@ -2517,7 +2517,7 @@ WERROR winreg_delete_printer_dataex(TALLOC_CTX *mem_ctx, uint32_t access_mask = SEC_FLAG_MAXIMUM_ALLOWED; struct dcerpc_binding_handle *winreg_handle = NULL; struct policy_handle hive_hnd, key_hnd; - struct winreg_String wvalue; + struct winreg_String wvalue = { 0, }; char *path; WERROR result = WERR_OK; NTSTATUS status; |