Fix wrong return value 41/213241/2
authorJusung Son <jusung07.son@samsung.com>
Tue, 3 Sep 2019 07:13:48 +0000 (16:13 +0900)
committerjusung son <jusung07.son@samsung.com>
Wed, 4 Sep 2019 05:45:55 +0000 (05:45 +0000)
Change-Id: I2ab2345f1a1e096f45ad2c8f33c11630b1a10a60
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
server/alarm-manager.c

index caf66aee986341ca9ab8943adf27c4d833c0599a..1f68d6cdf652d549923f58d051bf3b08dd1686b7 100644 (file)
@@ -418,13 +418,14 @@ static bool __set_time(time_t _time)
                        strncpy(log_tag, "SET RTC", sizeof(log_tag) - 1);
                        __save_module_log(log_tag, log_message);
 #endif
-                       return false;
+                       return true;
                }
        } else {
                LOGD("[alarm-server] RTC does not work.");
+               return true;
        }
 
-       return true;
+       return false;
 }
 
 bool __alarm_clean_list()