Suppress warning in GCC 14.2.1. Patch courtesy of Emanuele Torre
All checks were successful
Remind unit tests / tests (push) Successful in 38s

This commit is contained in:
Dianne Skoll
2024-08-23 07:44:36 -04:00
parent 0b28dde9c7
commit b3cf741d15

View File

@@ -244,7 +244,7 @@ int DoFset(ParsePtr p)
/* Save the argument names */
if (func->nargs) {
func->args = calloc(sizeof(char *), func->nargs);
func->args = calloc(func->nargs, sizeof(char *));
for (i=0; i<func->nargs; i++) {
func->args[i] = StrDup(local_array[i].name);
if (!func->args[i]) {