summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-24 17:19:49 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-24 17:55:48 +0200
commit53a32886ca1247f4cab5e4147061c2031f85015b (patch)
treeeec7a3371a3d3534d196e168d6210c6454810989 /src
parent895239acf05077c7700875cb722e50bfa8b45ead (diff)
Fix valgrind unaddressable bytes complaint
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index b0b2b293..80b4636e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -490,6 +490,8 @@ static void device_devreg_setup(int dev_id, gboolean devup)
init_device(dev_id);
+ memset(&di, 0, sizeof(di));
+
if (hci_devinfo(dev_id, &di) < 0)
return;