summaryrefslogtreecommitdiff
path: root/src/shared/time-dst.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-13 14:45:51 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-13 14:45:51 +0100
commit955d98c9c1104d469c2989dbfb58f58ee6fe9bdc (patch)
tree6964487e69bfefbbb08b0de140c67c6f2a00d791 /src/shared/time-dst.c
parent7e2270246b0906675c8f34bc278b1608b969e65c (diff)
everywhere: make use of new0() and macro() macros, and stop using perror()
Diffstat (limited to 'src/shared/time-dst.c')
-rw-r--r--src/shared/time-dst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/time-dst.c b/src/shared/time-dst.c
index 3950a882bf..65e2998c98 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;