Fix a maybe-uninitialized warning with -O3 (gcc)

GCC 11.1.0.

./epan/dissectors/packet-dcerpc-netlogon.c: In function ‘dissect_secchan_verf’:
../epan/dissectors/packet-dcerpc-netlogon.c:8162:13: error: ‘digest’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 8162 |     guint64 digest;
      |             ^~~~~~
This commit is contained in:
João Valverde 2021-05-20 00:54:25 +01:00
parent 32cc1c7906
commit 01144f9109
1 changed files with 1 additions and 1 deletions

View File

@ -8159,7 +8159,7 @@ dissect_secchan_verf(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_item *vf = NULL;
proto_tree *subtree = NULL;
guint64 encrypted_seq;
guint64 digest;
guint64 digest = 0;
guint64 confounder = 0;
int update_vars = 0;