From: Michael Drake Date: Fri, 24 May 2024 20:30:56 +0000 (+0100) Subject: Squash -Wcalloc-transposed-args (gcc-14) X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=df827c7c51d36da65c096ed714de6fe16b0670df;p=libsvgtiny.git Squash -Wcalloc-transposed-args (gcc-14) --- diff --git a/src/svgtiny.c b/src/svgtiny.c index 7550610..3101493 100644 --- a/src/svgtiny.c +++ b/src/svgtiny.c @@ -596,7 +596,7 @@ struct svgtiny_diagram *svgtiny_create(void) { struct svgtiny_diagram *diagram; - diagram = calloc(sizeof(*diagram), 1); + diagram = calloc(1, sizeof(*diagram)); if (!diagram) return 0;