Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
wgtpkg-install: Fix SEGV when no icon in config file
[src/app-framework-main.git]
/
src
/
wgtpkg-install.c
diff --git
a/src/wgtpkg-install.c
b/src/wgtpkg-install.c
index
9642c93
..
505b915
100644
(file)
--- a/
src/wgtpkg-install.c
+++ b/
src/wgtpkg-install.c
@@
-458,7
+458,7
@@
static int install_security(const struct wgt_desc *desc)
len--;
*head++ = '/';
icon = desc->icons ? desc->icons->src : NULL;
- lic = (unsigned)
strlen(icon
);
+ lic = (unsigned)
(icon ? strlen(icon) : 0
);
n = file_count();
i = 0;
while(i < n) {