projects
/
platform
/
core
/
appfw
/
debug-launchpad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87a3259
)
Fix the exception about getting the file name
89/79989/1
accepted/tizen/common/20160714.152700
accepted/tizen/ivi/20160714.053827
accepted/tizen/mobile/20160714.053732
accepted/tizen/tv/20160714.053759
accepted/tizen/wearable/20160714.053815
submit/tizen/20160714.000614
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 14 Jul 2016 02:18:19 +0000
(11:18 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 14 Jul 2016 02:18:19 +0000
(11:18 +0900)
Change-Id: Ib3ff3c69e01d7e8fbbbfc080078fbc122cce5070
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/debug-launchpad.c
patch
|
blob
|
history
diff --git
a/src/debug-launchpad.c
b/src/debug-launchpad.c
index
9c58d1b
..
f7b7f46
100644
(file)
--- a/
src/debug-launchpad.c
+++ b/
src/debug-launchpad.c
@@
-119,8
+119,14
@@
static int __prepare_exec(const char *appid, const char *app_path,
return -1;
}
- file_name = strrchr(app_path, '/')
+ 1
;
+ file_name = strrchr(app_path, '/');
if (file_name == NULL) {
+ _D("file_name is NULL");
+ return -1;
+ }
+
+ file_name++;
+ if (*file_name == '\0') {
_D("can't locate file name to execute");
return -1;
}