projects
/
platform
/
upstream
/
bluez.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git]
/
android
/
client
/
if-hl.c
diff --git
a/android/client/if-hl.c
b/android/client/if-hl.c
index
e0818ba
..
bd05671
100644
(file)
--- a/
android/client/if-hl.c
+++ b/
android/client/if-hl.c
@@
-201,6
+201,10
@@
static void register_application_p(int argc, const char **argv)
reg.number_of_mdeps = atoi(argv[6]);
reg.mdep_cfg = malloc(reg.number_of_mdeps * sizeof(bthl_mdep_cfg_t));
+ if (!reg.mdep_cfg) {
+ haltest_error("malloc failed\n");
+ return;
+ }
mdep_argc_init = 7;
for (i = 0; i < reg.number_of_mdeps; i++) {