From: Kyuho Jo Date: Sat, 23 May 2015 05:59:33 +0000 (+0900) Subject: Fix faults on TCT X-Git-Tag: submit/tizen_mobile/20150527.071719^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=579cf004c70c97f5059ef812dd09ad1c966c5b91;p=platform%2Fcore%2Fapi%2Fnotification.git Fix faults on TCT Change-Id: I700844f5765a1fe993f6e182309db2dfa53cfefe Signed-off-by: Kyuho Jo --- diff --git a/src/notification.c b/src/notification.c index d08471aa..20bcb113 100644 --- a/src/notification.c +++ b/src/notification.c @@ -3253,10 +3253,16 @@ EXPORT_API int notification_get_permission(notification_h handle, notification_p EXPORT_API int notification_set_ongoing_flag(notification_h noti, bool ongoing_flag) { - return NOTIFICATION_ERROR_INVALID_OPERATION; + if (noti == NULL) + return NOTIFICATION_ERROR_INVALID_PARAMETER; + + return NOTIFICATION_ERROR_NONE; } EXPORT_API int notification_get_ongoing_flag(notification_h noti, bool *ongoing_flag) { - return NOTIFICATION_ERROR_INVALID_OPERATION; + if (noti == NULL) + return NOTIFICATION_ERROR_INVALID_PARAMETER; + + return NOTIFICATION_ERROR_NONE; }