1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

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>
This commit is contained in:
Pavel Filipenský 2024-07-03 17:30:51 +02:00 committed by Volker Lendecke
parent 8292481bc0
commit af3868d703

View File

@ -1962,7 +1962,7 @@ static bool edit_on_submit(struct dialog *dia, struct dialog_section *section,
{
struct edit_req *edit = arg;
WERROR rv;
DATA_BLOB blob;
DATA_BLOB blob = {};
const char *name;
struct dialog_section *name_section, *data;