Skip to content

Commit

Permalink
raster: Fix uninitialized variable issue in o_var.c (#4005)
Browse files Browse the repository at this point in the history
Fix uninitialized variable issue in o_var.c

Co-authored-by: Shubham Vasudeo Desai <[email protected]>
  • Loading branch information
ShubhamDesai and Shubham Vasudeo Desai authored Jul 9, 2024
1 parent b73eae5 commit 3e8706d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raster/r.statistics/o_var.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int o_var(const char *basemap, const char *covermap, const char *outputmap,
{
struct Popen stats_child, reclass_child;
FILE *stats, *reclass;
int first, i, count;
int first, i, count = 0;
size_t mem;
long basecat, covercat, catb, catc;
double value, vari, x;
Expand Down

0 comments on commit 3e8706d

Please sign in to comment.