From: Jusung Son Date: Tue, 20 Aug 2019 02:25:21 +0000 (+0900) Subject: Fix invalid check logic X-Git-Tag: submit/tizen/20190827.024237~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ee51056b068512a898ebdfaa87e983db7175218;p=platform%2Fcore%2Fapi%2Fnotification.git Fix invalid check logic Change-Id: I0b3d3a57919b297230d6651cc75fc483bffe0599 Signed-off-by: Jusung Son --- diff --git a/notification/src/notification_internal.c b/notification/src/notification_internal.c index bee6eb3f..f4b3fc15 100644 --- a/notification/src/notification_internal.c +++ b/notification/src/notification_internal.c @@ -1838,6 +1838,7 @@ EXPORT_API int notification_get_extension_data(notification_h noti, const char * { char *ret_str; bundle *args; + int ret; if (noti == NULL || key == NULL || value == NULL) return NOTIFICATION_ERROR_INVALID_PARAMETER; @@ -1847,8 +1848,8 @@ EXPORT_API int notification_get_extension_data(notification_h noti, const char * args = noti->args; - bundle_get_str(args, key, &ret_str); - if (ret_str == NULL) + ret = bundle_get_str(args, key, &ret_str); + if (ret != BUNDLE_ERROR_NONE) return NOTIFICATION_ERROR_INVALID_PARAMETER; *value = _create_bundle_from_bundle_raw((bundle_raw *)ret_str);