X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-install.c;fp=src%2Fwgtpkg-install.c;h=505b9152ea2d7c974e926d0e88ddbe9996d7cd95;hb=259d262d39927203829fac0bbc05bd3772c01643;hp=9642c936abed98d8a4f92bab9ebd264e68047d16;hpb=037d7420cd2d553be2b2917d0f81ebac71b7ba07;p=src%2Fapp-framework-main.git 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) {