fix incorrect implementation in alarm_set_global 44/72344/1 accepted/tizen/common/20160606.141608 accepted/tizen/ivi/20160602.230749 accepted/tizen/mobile/20160602.230730 accepted/tizen/tv/20160602.230712 accepted/tizen/wearable/20160602.230648 submit/tizen/20160602.040935
authorJiwoong Im <jiwoong.im@samsung.com>
Tue, 31 May 2016 12:50:12 +0000 (21:50 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Tue, 31 May 2016 12:50:12 +0000 (21:50 +0900)
Change-Id: I02d4bba348f733665ddce4ec58682abad94b1985
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
src/alarm-lib.c

index 9aaa838..a18dcc8 100644 (file)
@@ -1644,7 +1644,6 @@ EXPORT_API int alarmmgr_set_global(const alarm_id_t alarm_id,
 EXPORT_API int alarmmgr_get_global(const alarm_id_t alarm_id,
                bool *global)
 {
-       bool _global;
        int error_code;
 
        if (__sub_init() < 0)
@@ -1653,7 +1652,7 @@ EXPORT_API int alarmmgr_get_global(const alarm_id_t alarm_id,
        if (global == NULL)
                return ERR_ALARM_INVALID_PARAM;
 
-       if (!_send_alarm_get_global(alarm_context, alarm_id, &_global, &error_code))
+       if (!_send_alarm_get_global(alarm_context, alarm_id, global, &error_code))
                return error_code;
 
        return ALARMMGR_RESULT_SUCCESS;