From d9b8b8484375b95d0f1f68436df505377a5f92d5 Mon Sep 17 00:00:00 2001 From: ShubhamDesai <42180509+ShubhamDesai@users.noreply.github.com> Date: Tue, 9 Jul 2024 02:21:02 -0400 Subject: [PATCH] raster: Fix uninitialized variable issue in o_var.c (#4005) Fix uninitialized variable issue in o_var.c Co-authored-by: Shubham Vasudeo Desai --- raster/r.statistics/o_var.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raster/r.statistics/o_var.c b/raster/r.statistics/o_var.c index 1e880d0026f..5f73ad10145 100644 --- a/raster/r.statistics/o_var.c +++ b/raster/r.statistics/o_var.c @@ -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;