summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-01-11 19:46:38 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-01-11 19:46:38 (GMT)
commit846de763b3d1af4b411393b6cd3e5f71f3054f43 (patch)
tree26ae93d937762444ee45d1b2b005f3710d73b298
parent58295f0c15f5be6badf33b75994e64b045172985 (diff)
downloadhdf5-846de763b3d1af4b411393b6cd3e5f71f3054f43.zip
hdf5-846de763b3d1af4b411393b6cd3e5f71f3054f43.tar.gz
hdf5-846de763b3d1af4b411393b6cd3e5f71f3054f43.tar.bz2
[svn-r1019] the last version I checked in was not ocmpletely correct.
-rw-r--r--src/H5Flow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Flow.c b/src/H5Flow.c
index e4dd2ba..a522870 100644
--- a/src/H5Flow.c
+++ b/src/H5Flow.c
@@ -482,6 +482,8 @@ H5F_low_access(const H5F_low_class_t *type, const char *name,
htri_t ret_value;
struct stat sb;
+ int fid;
+
FUNC_ENTER(H5F_low_size, FAIL);
assert(type);
@@ -492,7 +494,6 @@ H5F_low_access(const H5F_low_class_t *type, const char *name,
this extra block is needed because windows sets the st_dev member of sb
to be 0 if it is a file which makes the comparison below wrong
*/
- int fid;
fid=open(name,mode|_O_BINARY);
HDfstat(fid,&sb);