Przeglądaj źródła

Fixed segfault resulting from uninitialized "inputs" pointer.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48817 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 13 lat temu
rodzic
commit
f9a8227fd1
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      raster/r.series/main.c

+ 3 - 3
raster/r.series/main.c

@@ -115,11 +115,11 @@ int main(int argc, char *argv[])
     } 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;