Skip to content

Commit

Permalink
Fix uninitialized variable issue in lib/gis/env.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Jun 18, 2024
1 parent 2e4dbfa commit feb544f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gis/env.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ static void write_env(int loc)

static FILE *open_env(const char *mode, int loc)
{
char buf[GPATH_MAX];
char buf[GPATH_MAX] = {0};

if (loc == G_VAR_GISRC) {
if (!st->gisrc)
Expand Down

0 comments on commit feb544f

Please sign in to comment.