Change-Id: I0867a349d06243798baaebbe1ec29611f510dc3e
Signed-off-by: pr.jung <pr.jung@samsung.com>
/*
* check the path is valid
- * if path is null, below operation is ignored
+ * if path is null, reset vibration path
*/
+ if (!path) {
+ if (vib_info.data[pattern].changed) {
+ free(vib_info.data[pattern].changed);
+ vib_info.data[pattern].changed = NULL;
+ }
+ return 0;
+ }
+
if (path && stat(path, &buf)) {
_E("%s is not presents", path);
return -errno;