1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

rpc_client: Direct struct initialization in dcerpc_winreg_enumvals()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2021-04-07 15:44:35 +00:00 committed by Jeremy Allison
parent ca078a7103
commit 3a5c2582e1

View File

@ -717,7 +717,7 @@ NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx,
uint32_t secdescsize = 0; uint32_t secdescsize = 0;
uint32_t i; uint32_t i;
NTTIME last_changed_time = 0; NTTIME last_changed_time = 0;
struct winreg_String classname; struct winreg_String classname = { .name = NULL };
const char **enum_names = NULL; const char **enum_names = NULL;
enum winreg_Type *enum_types = NULL; enum winreg_Type *enum_types = NULL;
@ -735,8 +735,6 @@ NTSTATUS dcerpc_winreg_enumvals(TALLOC_CTX *mem_ctx,
return status; return status;
} }
ZERO_STRUCT(classname);
status = dcerpc_winreg_QueryInfoKey(h, status = dcerpc_winreg_QueryInfoKey(h,
tmp_ctx, tmp_ctx,
key_hnd, key_hnd,