commit 6b5e90ad29580c580a440c8fd006b202d0a2d21f
parent 074eee3548fa986549ff842f122b86533c79e71f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 23 Apr 2025 16:30:14 +0200
Fix a GCC warning
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/stardis-args.c b/src/stardis-args.c
@@ -422,7 +422,7 @@ init_args
struct args* args = NULL;
ASSERT(logger && allocator && out_args);
- args = calloc(sizeof(struct args), 1);
+ args = calloc(1, sizeof(struct args));
if(!args) {
res = RES_MEM_ERR;
goto error;