diff options
Diffstat (limited to 'geometry.c')
-rw-r--r-- | geometry.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -699,10 +699,9 @@ NextProperty(GeometryInfo * info) { PropertyInfo *pi; - pi = malloc(sizeof(PropertyInfo)); + pi = calloc(1, sizeof(PropertyInfo)); if (pi) { - bzero(pi, sizeof(PropertyInfo)); info->props = (PropertyInfo *) AddCommonInfo(&info->props->defs, (CommonInfo *) pi); info->nProps++; @@ -776,10 +775,9 @@ NextShape(GeometryInfo * info) { ShapeInfo *si; - si = malloc(sizeof(ShapeInfo)); + si = calloc(1, sizeof(ShapeInfo)); if (si) { - bzero(si, sizeof(ShapeInfo)); info->shapes = (ShapeInfo *) AddCommonInfo(&info->shapes->defs, (CommonInfo *) si); info->nShapes++; |