From: Andreas Schneider Date: Wed, 26 Sep 2018 12:30:32 +0000 (+0200) Subject: ndr: Init variables of GUID_from_data_blob() X-Git-Tag: tdb-1.3.17~1272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f040d660c0312dddbf03a9a6762044425d82fcb6;p=thirdparty%2Fsamba.git ndr: Init variables of GUID_from_data_blob() Found by covscan. Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- diff --git a/librpc/ndr/uuid.c b/librpc/ndr/uuid.c index 53540c7ddc8..6c5082190ca 100644 --- a/librpc/ndr/uuid.c +++ b/librpc/ndr/uuid.c @@ -59,11 +59,12 @@ _PUBLIC_ NTSTATUS GUID_from_ndr_blob(const DATA_BLOB *b, struct GUID *guid) _PUBLIC_ NTSTATUS GUID_from_data_blob(const DATA_BLOB *s, struct GUID *guid) { NTSTATUS status = NT_STATUS_INVALID_PARAMETER; - uint32_t time_low; - uint32_t time_mid, time_hi_and_version; - uint32_t clock_seq[2]; - uint32_t node[6]; - uint8_t buf16[16]; + uint32_t time_low = 0; + uint32_t time_mid = 0; + uint32_t time_hi_and_version = 0; + uint32_t clock_seq[2] = {0}; + uint32_t node[6] = {0}; + uint8_t buf16[16] = {0}; DATA_BLOB blob16 = data_blob_const(buf16, sizeof(buf16)); int i;