s3: Fix Coverity ID 2278: Uninitialized read
[samba.git] / source3 / rpc_client / cli_winreg.c
index 3c8e4fe193e38701d429d813251887e55228a01a..5b8635f1e023415ab6c97a914433245f26181d17 100644 (file)
@@ -379,7 +379,7 @@ NTSTATUS dcerpc_winreg_set_dword(TALLOC_CTX *mem_ctx,
                                 uint32_t data,
                                 WERROR *pwerr)
 {
-       struct winreg_String wvalue;
+       struct winreg_String wvalue = { 0, };
        DATA_BLOB blob;
        WERROR result = WERR_OK;
        NTSTATUS status;
@@ -538,7 +538,7 @@ NTSTATUS dcerpc_winreg_set_binary(TALLOC_CTX *mem_ctx,
                                  DATA_BLOB *data,
                                  WERROR *pwerr)
 {
-       struct winreg_String wvalue;
+       struct winreg_String wvalue = { 0, };
        WERROR result = WERR_OK;
        NTSTATUS status;