projects
/
platform
/
core
/
base
/
bundle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f249b27
)
Check return value
26/172426/1
author
mk5004.lee
<mk5004.lee@samsung.com>
Wed, 14 Mar 2018 02:36:00 +0000
(11:36 +0900)
committer
mk5004.lee
<mk5004.lee@samsung.com>
Wed, 14 Mar 2018 02:36:51 +0000
(11:36 +0900)
Change-Id: I29be7cf904e13762cb799aabbb2d89b215c1fc47
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/bundle_json.c
patch
|
blob
|
history
diff --git
a/src/bundle_json.c
b/src/bundle_json.c
index
3f11e3b
..
8dad013
100644
(file)
--- a/
src/bundle_json.c
+++ b/
src/bundle_json.c
@@
-136,6
+136,9
@@
static void __add_bundle_data_from_json(JsonObject *object,
node_type = JSON_NODE_TYPE(node);
if (node_type == JSON_NODE_ARRAY) {
json_arr = json_node_get_array(node);
+ if (json_arr == NULL)
+ return;
+
len = json_array_get_length(json_arr);
arr_val = (char **)calloc(1, sizeof(char *) * len);