Diff between 0bb83c757c99357e972112f0817a36e9db48f753 and b9fad8cebe965de793a1a2af01cffc4aca7dfe92
Changed Files
| File | Additions | Deletions | Status |
| tools/hcidump.c | +2 | -0 | modified |
Full Patch
diff --git a/tools/hcidump.c b/tools/hcidump.c
index 0966919..205531e 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
@@ -83,6 +83,8 @@ static void process_frames(int dev, int sock, int file)
printf("device: hci%d snap_len: %d filter: 0x%lx\n",
dev, snap_len, filter);
+ memset(&msg, 0, sizeof(msg));
+
while (1) {
iv.iov_base = frm.data;
iv.iov_len = snap_len;