Tools: Initialise string buffer

This commit is contained in:
Shahram Najm 2023-11-07 23:01:44 +00:00
parent d84441391b
commit 292c57a202
1 changed files with 1 additions and 1 deletions

View File

@ -1079,7 +1079,7 @@ void grib_print_key_values(grib_runtime_options* options, grib_handle* h)
int strlenvalue = 0;
double dvalue = 0;
long lvalue = 0;
char value[MAX_STRING_LEN];
char value[MAX_STRING_LEN] = {0,};
const char* notfound = "not_found";
int written_to_dump = 0; /* boolean */
grib_accessor* acc = NULL;