diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-12-06 11:20:48 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-12-07 04:57:00 +0000 |
commit | 0dfa4e825326a2573f4606b93da3a45d8a8a5e06 (patch) | |
tree | 82ad3484d281255b8a683262f25228c4aef01505 | |
parent | f7def1d07f39c8b90245a20d09a4b56ae23de077 (diff) |
WSMP: Make sure our PSID is initialized.
Fixes a scan-build warning.
Change-Id: I5e6b94240e87684fc41ef1a4daf4272d429f00d4
Reviewed-on: https://code.wireshark.org/review/30952
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r-- | epan/dissectors/packet-wsmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-wsmp.c b/epan/dissectors/packet-wsmp.c index 8e3600677a..737eb24048 100644 --- a/epan/dissectors/packet-wsmp.c +++ b/epan/dissectors/packet-wsmp.c @@ -214,6 +214,7 @@ dissect_wsmp_psid(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int o guint32 psidLen = 0; oct = tvb_get_guint8(tvb, offset); + *psid = 0; if ((oct & 0xF0) == 0xF0) { psidLen = 255; |