everywhere: make use of new0() and macro() macros, and stop using perror()

This commit is contained in:
Lennart Poettering
2014-02-13 14:45:51 +01:00
parent 7e2270246b
commit 955d98c9c1
16 changed files with 38 additions and 39 deletions
+1 -1
View File
@@ -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;