aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2015-10-31 00:20:35 +0000
committerMichael Mann <mmann78@netscape.net>2015-11-01 03:25:06 +0000
commitaf11478bfd13c05d92127920ca25751a47c4c47d (patch)
treef126439602a81f0fca834ee9de92543184e34d3b /epan
parentced7412c1062a74afc3f973fe1e3d1238a0acf40 (diff)
bluetooth: Fix uninitialized value warning
Change-Id: Iee1d1cf3e24dacca3c1a353001a8af71e074a96b Reviewed-on: https://code.wireshark.org/review/11454 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-bluetooth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bluetooth.c b/epan/dissectors/packet-bluetooth.c
index d855f90d1e..e450a45b5b 100644
--- a/epan/dissectors/packet-bluetooth.c
+++ b/epan/dissectors/packet-bluetooth.c
@@ -24,6 +24,7 @@
#include "config.h"
+#include <string.h>
#include <epan/packet.h>
#include <epan/to_str.h>
#include <epan/conversation_table.h>
@@ -1242,11 +1243,9 @@ get_uuid(tvbuff_t *tvb, gint offset, gint size)
{
bluetooth_uuid_t uuid;
- uuid.bt_uuid = 0;
+ memset(&uuid, 0, sizeof(uuid));
if (size != 2 && size != 16) {
- uuid.size = 0;
- uuid.data[0] = 0;
return uuid;
}