ECC-1419: C API: codes_fieldset_new_from_files: The 'filenames' argument should be const

This commit is contained in:
Shahram Najm 2022-06-30 10:29:14 +01:00
parent 416560bc1b
commit 2be3dddd15
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ static int grib_tool_with_orderby(grib_runtime_options* options)
grib_failed *failed = NULL, *p = NULL;
grib_handle* h = NULL;
grib_tools_file* infile = options->infile;
char** filenames;
const char** filenames = NULL;
int files_count = 0;
grib_fieldset* set = NULL;
int i = 0;
@ -230,7 +230,7 @@ static int grib_tool_with_orderby(grib_runtime_options* options)
infile = infile->next;
}
filenames = (char**)grib_context_malloc_clear(c, files_count * sizeof(char*));
filenames = (const char**)grib_context_malloc_clear(c, files_count * sizeof(char*));
infile = options->infile;
for (i = 0; i < files_count; i++) {