From 0ad0968a1a803c55e83c145f2bf9a2bdc8caa5c1 Mon Sep 17 00:00:00 2001 From: Shubham Vasudeo Desai Date: Mon, 8 Jul 2024 18:20:29 -0400 Subject: [PATCH] Fix uninitialized variable issue in o_var.c --- 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;