summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wgtpkg-install.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wgtpkg-install.c b/src/wgtpkg-install.c
index 9642c93..505b915 100644
--- 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) {