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>
This commit is contained in:
João Valverde 2015-10-31 00:20:35 +00:00 committed by Michael Mann
parent ced7412c10
commit af11478bfd
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}