projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53adbc9
)
emulator: fix crash if path is null
45/23645/2
author
SeokYeon Hwang
<syeon.hwang@samsung.com>
Tue, 1 Jul 2014 04:05:53 +0000
(13:05 +0900)
committer
SeokYeon Hwang
<syeon.hwang@samsung.com>
Tue, 1 Jul 2014 07:42:13 +0000
(
00:42
-0700)
Change-Id: I7b8a3ad7f1ff668bff453b5b792a745a5a0196bd
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/maru_err_table.c
patch
|
blob
|
history
diff --git
a/tizen/src/maru_err_table.c
b/tizen/src/maru_err_table.c
index b12dcf369b901b33492f39d18c26ac74f675a4e6..01f6dd1f07268a0aaaf4ca30442c81ed6a2c4de1 100644
(file)
--- a/
tizen/src/maru_err_table.c
+++ b/
tizen/src/maru_err_table.c
@@
-152,7
+152,13
@@
char *maru_convert_path(char *msg, const char *path)
int path_len = 0;
int res = -1;
- res = (int)g_path_is_absolute(path);
+ if (!path) {
+ path = "NULL";
+ res = 1;
+ }
+ else {
+ res = (int)g_path_is_absolute(path);
+ }
path_len = (strlen(path) + 1);
if (msg) {
msg_len = strlen(msg) + 1;