dtcm/rfp.c: NULL is not 0
authorJon Trulson <jon@radscan.com>
Mon, 24 Mar 2014 23:49:19 +0000 (17:49 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 24 Mar 2014 23:49:19 +0000 (17:49 -0600)
cde/programs/dtcm/dtcm/rfp.c

index 68f3b2795ab4e1acf2b8544dbb714422a3f7ac4a..ccb0150e708fb910a17b0d4f5baf68429e730b5e 100644 (file)
@@ -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);
                 }