From 91ba4263dd795f83eaa9c43e52c3be55e4f382a6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 12 Sep 2025 12:44:39 +0200 Subject: Fix proper use of calloc --- src/plist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plist.c b/src/plist.c index a33a6fb..fe98f34 100644 --- a/src/plist.c +++ b/src/plist.c @@ -358,7 +358,7 @@ plist_data_t plist_get_data(plist_t node) plist_data_t plist_new_plist_data(void) { - plist_data_t data = (plist_data_t) calloc(sizeof(struct plist_data_s), 1); + plist_data_t data = (plist_data_t) calloc(1, sizeof(struct plist_data_s)); return data; } -- cgit v1.1-32-gdbae