From 165af415d106ec6a994808d5420c52b3fe037bfe Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Mon, 24 Mar 2014 17:49:19 -0600 Subject: [PATCH] dtcm/rfp.c: NULL is not 0 --- cde/programs/dtcm/dtcm/rfp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/programs/dtcm/dtcm/rfp.c b/cde/programs/dtcm/dtcm/rfp.c index 68f3b279..ccb0150e 100644 --- a/cde/programs/dtcm/dtcm/rfp.c +++ b/cde/programs/dtcm/dtcm/rfp.c @@ -934,7 +934,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP) /* return (CSA_E_INSUFFICIENT_MEMORY); */ return False; - memset(a->repeat_type, NULL, sizeof(CSA_attribute)); + memset(a->repeat_type, 0, sizeof(CSA_attribute)); _DtCm_set_sint32_attrval(rfp->repeat_type, &a->repeat_type->value); @@ -951,7 +951,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP) /* return (CSA_E_INSUFFICIENT_MEMORY); */ return False; - memset(a->repeat_type, NULL, sizeof(CSA_attribute)); + memset(a->repeat_type, 0, sizeof(CSA_attribute)); _DtCm_set_sint32_attrval(rfp->repeat_type,&a->repeat_type->value); } -- 2.25.1