mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: Fix Coverity ID 2317: Uninitialized read
We passed the structure including the uninitialized elements to dcerpc_winreg_SetValue.
This commit is contained in:
parent
329fcd4e34
commit
df79b3ba76
@ -776,7 +776,7 @@ static WERROR winreg_printer_write_date(TALLOC_CTX *mem_ctx,
|
||||
const char *value,
|
||||
NTTIME data)
|
||||
{
|
||||
struct winreg_String wvalue;
|
||||
struct winreg_String wvalue = { 0, };
|
||||
DATA_BLOB blob;
|
||||
WERROR result = WERR_OK;
|
||||
NTSTATUS status;
|
||||
|
Loading…
Reference in New Issue
Block a user