X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-install.c;h=505b9152ea2d7c974e926d0e88ddbe9996d7cd95;hb=259d262d39927203829fac0bbc05bd3772c01643;hp=2b57a4ea3bf302462ba49c65875616ba95fbd46a;hpb=c6a0f3884ebb85f6c9b6eec631ac78b6fe27f4f5;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-install.c b/src/wgtpkg-install.c index 2b57a4e..505b915 100644 --- a/src/wgtpkg-install.c +++ b/src/wgtpkg-install.c @@ -1,5 +1,5 @@ /* - Copyright 2015, 2016, 2017 IoT.bzh + Copyright (C) 2015-2018 IoT.bzh author: José Bollo @@ -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) {