From: Jiwoong Im Date: Fri, 21 Jul 2017 04:52:44 +0000 (+0900) Subject: Add null check in __esd_appcontrol_cb X-Git-Tag: accepted/tizen/4.0/unified/20170816.012139~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e19a781652600371cb890496d73d8d15b3e2df22;p=platform%2Fcore%2Fappfw%2Fevent-system.git Add null check in __esd_appcontrol_cb - Add null check of uri in __esd_appcontrol_cb Change-Id: I77bca91456a842186721f9d059d6cae94abb3caf Signed-off-by: Jiwoong Im --- diff --git a/src/esd_main.c b/src/esd_main.c index a4cd99a..784a514 100644 --- a/src/esd_main.c +++ b/src/esd_main.c @@ -1913,7 +1913,7 @@ static int __esd_appcontrol_cb(const char *operation, uid, appid, pkgid, operation, uri, mime); if (!strcmp(operation, APPSVC_OPERATION_LAUNCH_ON_EVENT)) { - if (!strncmp(uri, prefix, strlen(prefix))) { + if (uri && !strncmp(uri, prefix, strlen(prefix))) { event_name = strdup(&uri[8]); if (event_name) { _D("appid(%s), event_name(%s)", appid, event_name);