diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-07-14 11:18:19 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-07-14 11:18:19 +0900 |
commit | 6297b39601a770d4ef84a9913cab471d7b8171c4 (patch) | |
tree | 47211f71d3e4e10b09642023cf8be362738796b6 | |
parent | 87a3259fbb3a6878e5343aeba99384ffe1760e4a (diff) | |
download | debug-launchpad-6297b39601a770d4ef84a9913cab471d7b8171c4.tar.gz debug-launchpad-6297b39601a770d4ef84a9913cab471d7b8171c4.tar.bz2 debug-launchpad-6297b39601a770d4ef84a9913cab471d7b8171c4.zip |
Fix the exception about getting the file namesubmit/tizen/20160714.000614accepted/tizen/wearable/20160714.053815accepted/tizen/tv/20160714.053759accepted/tizen/mobile/20160714.053732accepted/tizen/ivi/20160714.053827accepted/tizen/common/20160714.152700
Change-Id: Ib3ff3c69e01d7e8fbbbfc080078fbc122cce5070
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/debug-launchpad.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/debug-launchpad.c b/src/debug-launchpad.c index 9c58d1b..f7b7f46 100644 --- 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; } |