X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Ftime-dst.c;h=65e2998c983a5f9bab9343b1b5cfe15c58b03a05;hb=c305c32580a1d7689a401e8cf673ec7936c12bbe;hp=3950a882bf46b7600f77730452252902723653f5;hpb=11f22867f9cdbfc6656905861090cded91a41bd7;p=elogind.git diff --git a/src/shared/time-dst.c b/src/shared/time-dst.c index 3950a882b..65e2998c9 100644 --- a/src/shared/time-dst.c +++ b/src/shared/time-dst.c @@ -183,7 +183,7 @@ read_again: return -EINVAL; } - transitions = (time_t *)calloc(total_size + tzspec_len, 1); + transitions = malloc0(total_size + tzspec_len); if (transitions == NULL) return -EINVAL;