diff --git a/libdm/libdm-timestamp.c b/libdm/libdm-timestamp.c index 7690ccb9d..fe006d58f 100644 --- a/libdm/libdm-timestamp.c +++ b/libdm/libdm-timestamp.c @@ -54,7 +54,7 @@ struct dm_timestamp *dm_timestamp_alloc(void) { struct dm_timestamp *ts = NULL; - if (!(ts = dm_malloc(sizeof(*ts)))) + if (!(ts = dm_zalloc(sizeof(*ts)))) stack; return ts;