summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-30 13:18:14 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-30 13:18:14 +0200
commit8971a0a031faf65473e6f18a8c073775ccef0f85 (patch)
treedf70a650fffcf231cb1d0c4804ae3fc4e4082e81
parent16dc50490276c4cff4025a251a2a385315481b5e (diff)
parentf80bb1f7eaf31476a44c2093d3ee02aba817a0b0 (diff)
Merge pull request #1073 from phomes/master
util: make malloc0 ask calloc for one block of size n
-rw-r--r--src/basic/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index 1ead7b5419..1484ef58e5 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -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);