dtcm/rfp.c: NULL is not 0
This commit is contained in:
@@ -934,7 +934,7 @@ rfp_form_flags_to_appt(RFP *rfp, Dtcm_appointment *a, char *name, int *flagsP)
|
|||||||
/* return (CSA_E_INSUFFICIENT_MEMORY); */
|
/* return (CSA_E_INSUFFICIENT_MEMORY); */
|
||||||
return False;
|
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,
|
_DtCm_set_sint32_attrval(rfp->repeat_type,
|
||||||
&a->repeat_type->value);
|
&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 (CSA_E_INSUFFICIENT_MEMORY); */
|
||||||
return False;
|
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);
|
_DtCm_set_sint32_attrval(rfp->repeat_type,&a->repeat_type->value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user