1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 04:55:36 +03:00

Merge pull request #1073 from phomes/master

util: make malloc0 ask calloc for one block of size n
This commit is contained in:
Lennart Poettering 2015-08-30 13:18:14 +02:00
commit 8971a0a031

View File

@ -83,7 +83,7 @@ int strcmp_ptr(const char *a, const char *b) _pure_;
#define newdup(t, p, n) ((t*) memdup_multiply(p, sizeof(t), (n)))
#define malloc0(n) (calloc((n), 1))
#define malloc0(n) (calloc(1, (n)))
static inline void *mfree(void *memory) {
free(memory);