From: Hwankyu Jhun Date: Fri, 19 May 2017 00:11:05 +0000 (+0900) Subject: Fix exception handling of watch_time_get_dst_status API X-Git-Tag: accepted/tizen/unified/20170519.195909~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F97%2F129997%2F1;p=platform%2Fcore%2Fappfw%2Fappcore-watch.git Fix exception handling of watch_time_get_dst_status API The watch_time_get_dst_status API should check whether the parameter is NULL pointer or NOT. Change-Id: I5194f58ee841ef263fceb7e694011329a495e655 Signed-off-by: Hwankyu Jhun --- diff --git a/src/watch_app_main.c b/src/watch_app_main.c index 1bade82..e11c5ee 100755 --- a/src/watch_app_main.c +++ b/src/watch_app_main.c @@ -972,7 +972,7 @@ EXPORT_API int watch_time_get_time_zone(watch_time_h watch_time, EXPORT_API int watch_time_get_dst_status(watch_time_h watch_time, bool *status) { - if (watch_time == NULL) + if (watch_time == NULL || status == NULL) return watch_app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, NULL); if (watch_time->indaylight)