s3:utils: Initialize DATA_BLOB blob
commitaf3868d70367523db6d4ae4411e951baa5849803
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 3 Jul 2024 15:30:51 +0000 (3 17:30 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 5 Jul 2024 07:45:31 +0000 (5 07:45 +0000)
treecea197d6ae2056742090521fa0cf22a279b9377c
parent8292481bc06f0a6a905e1cd98f24269cf40161b2
s3:utils: Initialize DATA_BLOB blob

Error: UNINIT (CWE-457):
samba-4.20.0rc2/source3/utils/regedit_dialog.c:1965: var_decl: Declaring variable "blob" without initializer.
samba-4.20.0rc2/source3/utils/regedit_dialog.c:2044: uninit_use_in_call: Using uninitialized value "blob" when calling "reg_val_set".
 2042|
 2043|           if (W_ERROR_IS_OK(rv)) {
 2044|->                 rv = reg_val_set(edit->key, name, edit->type, blob);
 2045|           }
 2046|

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/utils/regedit_dialog.c