[cig-commits] r13765 - cs/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Wed Dec 17 02:33:31 PST 2008


Author: luis
Date: 2008-12-17 02:33:31 -0800 (Wed, 17 Dec 2008)
New Revision: 13765

Modified:
   cs/cigma/trunk/src/io_hdf5.h
Log:
Initialize dims[] array in function get_full_dataset<MT>()

Modified: cs/cigma/trunk/src/io_hdf5.h
===================================================================
--- cs/cigma/trunk/src/io_hdf5.h	2008-12-17 10:33:29 UTC (rev 13764)
+++ cs/cigma/trunk/src/io_hdf5.h	2008-12-17 10:33:31 UTC (rev 13765)
@@ -107,7 +107,7 @@
             return -4;
         }
 
-        hsize_t dims[2];
+        hsize_t dims[2] = {1,1};
         int ndims = dataspace.getSimpleExtentDims(dims, NULL);
         int size = dataspace.getSimpleExtentNpoints();
         MT *array = 0;



More information about the CIG-COMMITS mailing list