summaryrefslogtreecommitdiffstats
path: root/src/H5FDcore.c
diff options
context:
space:
mode:
authorJames Laird <jlaird@hdfgroup.org>2007-01-24 16:15:27 (GMT)
committerJames Laird <jlaird@hdfgroup.org>2007-01-24 16:15:27 (GMT)
commit0ab3725051f24fede655d054e3ee0868dcfa7782 (patch)
tree1ecb2c9792955f41b668f91d6c445f384c3c3f6f /src/H5FDcore.c
parent5a8f3945fe623fae8efe35bcaece8775fcc3537e (diff)
downloadhdf5-0ab3725051f24fede655d054e3ee0868dcfa7782.zip
hdf5-0ab3725051f24fede655d054e3ee0868dcfa7782.tar.gz
hdf5-0ab3725051f24fede655d054e3ee0868dcfa7782.tar.bz2
[svn-r13186] Cleaned up a few warnings by initializing variables and doing a few casts.
Tested on kagiso, smirom, copper.
Diffstat (limited to 'src/H5FDcore.c')
-rw-r--r--src/H5FDcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDcore.c b/src/H5FDcore.c
index 4c0d906..72c3a0f 100644
--- a/src/H5FDcore.c
+++ b/src/H5FDcore.c
@@ -434,7 +434,7 @@ H5FD_core_open(const char *name, unsigned flags, hid_t fapl_id,
/* If an existing file is opened, load the whole file into memory. */
if(!(H5F_ACC_CREAT & flags)) {
- unsigned char *x;
+ unsigned char *x=NULL;
size_t size;
if (HDfstat(file->fd, &sb)<0)