Skip to content

Commit

Permalink
Tools: Initialise string buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Nov 7, 2023
1 parent d844413 commit 292c57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/grib_tools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 292c57a

Please sign in to comment.