fix svace issues 23/98323/1
authorJongkyu Koo <jk.koo@samsung.com>
Thu, 17 Nov 2016 04:45:42 +0000 (13:45 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Thu, 17 Nov 2016 05:30:46 +0000 (21:30 -0800)
Change-Id: Ib7d668919b7743897dd815763803ad4de1c91d67
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
common/dbus/cal_dbus_helper.c

index 9288de0..dd913aa 100644 (file)
@@ -90,8 +90,8 @@ GVariant* cal_dbus_utils_common_to_gvariant(cal_record_s *rec)
 
 int cal_dbus_utils_gvariant_to_common(GVariant *arg_common, calendar_record_h *record)
 {
-       RET_IF(NULL == record);
-       RET_IF(NULL == *record);
+       RETV_IF(NULL == record, CALENDAR_ERROR_INVALID_PARAMETER);
+       RETV_IF(NULL == *record, CALENDAR_ERROR_INVALID_PARAMETER);
 
        cal_record_s rec = {0};
        GVariant *arg_flags = NULL;