Add check routine whether a parameter is null 09/89109/1
authorMyungki Lee <mk5004.lee@samsung.com>
Thu, 22 Sep 2016 07:45:27 +0000 (16:45 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Thu, 22 Sep 2016 07:45:27 +0000 (16:45 +0900)
- notification_system_setting_get_dnd_allow_exceptions()

Change-Id: Ib146438e008dc47293dcd89c163937bc3e0398d5
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/notification_setting.c

index 7d5b592..b945249 100755 (executable)
@@ -760,7 +760,7 @@ EXPORT_API int notification_system_setting_get_dnd_allow_exceptions(notification
        dnd_allow_exception_h dnd_allow_exception_data;
        GList *list;
 
-       if (system_setting == NULL) {
+       if (system_setting == NULL || value == NULL) {
                NOTIFICATION_ERR("Invalid parameter");
                return NOTIFICATION_ERROR_INVALID_PARAMETER;
        }