Fixed compiler warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] (#1133)

* Fixed compiler  warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args]

* Fixed compile error found in pipeline build.

* Fixed pre-commit
This commit is contained in:
Steve Karg
2025-11-09 13:26:35 -06:00
committed by GitHub
parent c6076f2561
commit 28a30be5ec
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -4072,7 +4072,7 @@ bool bacapp_print_value(
char str[str_len + 1];
#else
char *str;
str = calloc(sizeof(char), str_len + 1);
str = calloc(str_len + 1, sizeof(char));
if (!str) {
return false;
}