Swap calloc arguments to use them properly.

This commit is contained in:
Rose
2023-10-15 10:47:05 -04:00
committed by Todd C. Miller
parent dd8426f9cf
commit a4cbd7fe7b
3 changed files with 4 additions and 3 deletions

View File

@@ -360,7 +360,7 @@ parse_plugin(const char *entry, const char *conf_file, unsigned int lineno)
options[nopts] = NULL;
}
info = calloc(sizeof(*info), 1);
info = calloc(1, sizeof(*info));
if (info == NULL)
goto oom;
info->symbol_name = strndup(symbol, symlen);