projects
/
platform
/
core
/
appfw
/
event-system.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e0489f
)
Add null check in __esd_appcontrol_cb
60/141060/1
author
Jiwoong Im
<jiwoong.im@samsung.com>
Fri, 21 Jul 2017 04:52:44 +0000
(13:52 +0900)
committer
Jiwoong Im
<jiwoong.im@samsung.com>
Fri, 28 Jul 2017 03:21:35 +0000
(12:21 +0900)
- Add null check of uri in __esd_appcontrol_cb
Change-Id: I77bca91456a842186721f9d059d6cae94abb3caf
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
src/esd_main.c
patch
|
blob
|
history
diff --git
a/src/esd_main.c
b/src/esd_main.c
index
a4cd99a
..
784a514
100644
(file)
--- 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);