From e19a781652600371cb890496d73d8d15b3e2df22 Mon Sep 17 00:00:00 2001 From: Jiwoong Im Date: Fri, 21 Jul 2017 13:52:44 +0900 Subject: [PATCH] Add null check in __esd_appcontrol_cb - Add null check of uri in __esd_appcontrol_cb Change-Id: I77bca91456a842186721f9d059d6cae94abb3caf Signed-off-by: Jiwoong Im --- src/esd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4