From: Jon Trulson Date: Mon, 24 Mar 2014 23:49:19 +0000 (-0600) Subject: dtcm/rfp.c: NULL is not 0 X-Git-Tag: 2.2.2~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=165af415d106ec6a994808d5420c52b3fe037bfe;p=oweals%2Fcde.git dtcm/rfp.c: NULL is not 0 --- 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); }