forked from osmocom/wireshark
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:
parent
ced7412c10
commit
af11478bfd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue