OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87d824
)
tools/smp-tester: Initialize all test data to zero
author
Johan Hedberg
<johan.hedberg@intel.com>
Wed, 27 Nov 2013 11:44:59 +0000
(13:44 +0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Thu, 28 Nov 2013 14:36:33 +0000
(16:36 +0200)
tools/smp-tester.c
patch
|
blob
|
history
diff --git
a/tools/smp-tester.c
b/tools/smp-tester.c
index
5e8fee2
..
28bc1a0
100644
(file)
--- a/
tools/smp-tester.c
+++ b/
tools/smp-tester.c
@@
-294,12
+294,10
@@
static void test_data_free(void *test_data)
#define test_smp(name, data, setup, func) \
do { \
struct test_data *user; \
- user =
malloc(
sizeof(struct test_data)); \
+ user =
calloc(1,
sizeof(struct test_data)); \
if (!user) \
break; \
user->hciemu_type = HCIEMU_TYPE_LE; \
- user->io_id = 0; \
- user->counter = 0; \
user->alg_sk = -1; \
user->test_data = data; \
tester_add_full(name, data, \