mirror of
https://github.com/merbanan/rtl_433.git
synced 2026-05-24 09:46:17 -04:00
Silence CSA issue
Result of 'calloc' is converted to a pointer of type 'const char *', which is incompatible with sizeof operand type 'const char **'
This commit is contained in:
@@ -653,7 +653,7 @@ void data_output_csv_init(struct data_output *output, const char **fields, int n
|
||||
}
|
||||
num_unique_fields = i;
|
||||
|
||||
csv->fields = calloc(num_unique_fields + 1, sizeof(const char **));
|
||||
csv->fields = calloc(num_unique_fields + 1, sizeof(const char *));
|
||||
if (!csv->fields)
|
||||
goto alloc_error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user