projects
/
platform
/
core
/
system
/
libsvi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36100cb
)
sound: Add logic for checking NULL
04/224104/1
author
Yunmi Ha
<yunmi.ha@samsung.com>
Thu, 6 Feb 2020 05:52:35 +0000
(14:52 +0900)
committer
Hyotaek Shim
<hyotaek.shim@samsung.com>
Thu, 6 Feb 2020 07:53:38 +0000
(07:53 +0000)
- For fix svace issue
Change-Id: I1ed485fff3f01686c1120b30e3af85f0d463bced
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
(cherry picked from commit
897a1f2557a5750e62f6ee8aa46d081098832508
)
src/sound.c
patch
|
blob
|
history
diff --git
a/src/sound.c
b/src/sound.c
index 08905ab620f1a1f79fc9f2280454377f76ce4c96..8e54a8d18b4a1124a7fb520be4a06f2383e0b0ab 100644
(file)
--- a/
src/sound.c
+++ b/
src/sound.c
@@
-276,9
+276,13
@@
static int sound_set_path(feedback_pattern_e pattern, char *path)
continue;
sound_info.data[i].pattern = pattern;
- sound_info.data[i].changed = strdup(path);
+ if (path)
+ sound_info.data[i].changed = strdup(path);
+ else
+ sound_info.data[i].changed = NULL;
+
_D("The file of pattern(%s) is changed to [%s]",
- profile->str_pattern(pattern), path);
+ profile->str_pattern(pattern), path
? path:"NULL"
);
return 0;
}