]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Squash -Wcalloc-transposed-args (gcc-14)
authorMichael Drake <tlsa@netsurf-browser.org>
Fri, 24 May 2024 20:30:56 +0000 (21:30 +0100)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 20 Oct 2024 22:00:15 +0000 (18:00 -0400)
src/svgtiny.c

index 7550610f54f906d75984019922fc8856be2bda45..31014936d5ae4446e03980347c698398016d2a43 100644 (file)
@@ -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;