[GRASS-SVN] r48817 - grass/trunk/raster/r.series
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 15 15:17:27 EDT 2011
Author: huhabla
Date: 2011-10-15 12:17:27 -0700 (Sat, 15 Oct 2011)
New Revision: 48817
Modified:
grass/trunk/raster/r.series/main.c
Log:
Fixed segfault resulting from uninitialized "inputs" pointer.
Modified: grass/trunk/raster/r.series/main.c
===================================================================
--- grass/trunk/raster/r.series/main.c 2011-10-15 16:22:52 UTC (rev 48816)
+++ grass/trunk/raster/r.series/main.c 2011-10-15 19:17:27 UTC (rev 48817)
@@ -115,11 +115,11 @@
} flag;
int i;
int num_inputs;
- struct input *inputs;
+ struct input *inputs = NULL;
int num_outputs;
- struct output *outputs;
+ struct output *outputs = NULL;
struct History history;
- DCELL *values, *values_tmp;
+ DCELL *values = NULL, *values_tmp = NULL;
int nrows, ncols;
int row, col;
double lo, hi;
More information about the grass-commit
mailing list