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:
Benjamin Larsson
2018-12-07 21:31:29 +01:00
parent d3d9d0264a
commit bf9cbf244f

View File

@@ -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;