fix prevent issue 82/17782/1
authorHyungdeuk Kim <hd3.kim@samsung.com>
Mon, 19 Aug 2013 08:24:05 +0000 (17:24 +0900)
committerSemun Lee <sm79.lee@samsung.com>
Tue, 11 Mar 2014 00:21:00 +0000 (09:21 +0900)
Change-Id: I2e00b1f3157eaf9341dd3b3bb60534a9b5c83acb

alarm-manager.c
packaging/alarm-manager.spec

index 7edc414..1871f77 100755 (executable)
@@ -284,8 +284,6 @@ int _set_rtc_time(time_t _time)
        retval0 = ioctl(fd0, RTC_SET_TIME, &rtc_tm);
 
        if (retval0 == -1) {
-               if (fd0 != -1)
-                       close(fd0);
                ALARM_MGR_LOG_PRINT("error to ioctl fd0.");
                perror("\t");
        }
@@ -296,8 +294,6 @@ int _set_rtc_time(time_t _time)
                retval1 = ioctl(fd1, RTC_SET_TIME, &rtc_tm);
 
                if (retval1 == -1) {
-                       if (fd1 != -1)
-                               close(fd1);
                        ALARM_MGR_LOG_PRINT("error to ioctl fd1.");
                        perror("\t");
                }
@@ -1535,7 +1531,7 @@ static void __alarm_expired()
                                        ALARM_MGR_ASSERT_PRINT("[alarm-server]:Malloc failed!Can't notify alarm expiry info\n");
                                        goto done;
                                }
-                               memset(expire_info, '\0', MAX_SERVICE_NAME_LEN);
+                               memset(expire_info, '\0', sizeof(__expired_alarm_t));
                                strncpy(expire_info->service_name,
                                        destination_app_service_name,
                                        MAX_SERVICE_NAME_LEN-1);
index 50bad0d..b1b0f26 100644 (file)
@@ -1,5 +1,5 @@
 Name:           alarm-manager
-Version:        0.4.84
+Version:        0.4.85
 Release:        1
 License:        Apache-2.0
 Summary:        Alarm library