summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPius Lee <pius.lee@samsung.com>2012-02-10 19:29:32 +0900
committerPius Lee <pius.lee@samsung.com>2012-02-10 19:29:32 +0900
commitd77baae6d7b607e8cff1b22dcf81a65ce994c542 (patch)
tree4f3414423cbaa45142980aa01c392ba5fd1fe71f
parentde40936aca10c193eb7f41e997661e00f52d8808 (diff)
downloadfeedback-d77baae6d7b607e8cff1b22dcf81a65ce994c542.tar.gz
feedback-d77baae6d7b607e8cff1b22dcf81a65ce994c542.tar.bz2
feedback-d77baae6d7b607e8cff1b22dcf81a65ce994c542.zip
Add null check to feedback_get_resource_path
-rw-r--r--debian/changelog8
-rw-r--r--src/feedback.c5
2 files changed, 13 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index f2da33c..c1ccffd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+capi-uix-feedback (0.1.0-5) unstable; urgency=low
+
+ * Add null check to feedback_get_resource_path
+ * Git: api/feedback
+ * Tag: capi-uix-feedback_0.1.0-5
+
+ -- pius lee <pius.lee@samsung.com> Thu, 26 Jan 2012 16:30:08 +0900
+
capi-uix-feedback (0.1.0-4) unstable; urgency=low
* version update
diff --git a/src/feedback.c b/src/feedback.c
index 521a37f..a15cd0e 100644
--- a/src/feedback.c
+++ b/src/feedback.c
@@ -115,6 +115,11 @@ int feedback_get_resource_path(feedback_type_e type, feedback_pattern_e pattern,
int err;
char buf[MAX_PATH_LENGTH];
+ if(path == NULL){
+ LOGE("[%s] Invalid parameter(0x%08x)", __FUNCTION__, FEEDBACK_ERROR_INVALID_PARAMETER);
+ return FEEDBACK_ERROR_INVALID_PARAMETER;
+ }
+
if(type < FEEDBACK_TYPE_SOUND || type > FEEDBACK_TYPE_VIBRATION){
LOGE("[%s] Invalid parameter(0x%08x)", __FUNCTION__, FEEDBACK_ERROR_INVALID_PARAMETER);
return FEEDBACK_ERROR_INVALID_PARAMETER;