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:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user