summaryrefslogtreecommitdiffstats
path: root/src/H5Osdim.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-09-12 15:32:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-09-12 15:32:33 (GMT)
commit08b00d7bfee352356b0e458c602682b54e47d880 (patch)
tree3c499c64f5927a47c1194afde44d8d9af73b82f3 /src/H5Osdim.c
parent2a7ec85d6bb3106e893170578e00eac554a1f71e (diff)
downloadhdf5-08b00d7bfee352356b0e458c602682b54e47d880.zip
hdf5-08b00d7bfee352356b0e458c602682b54e47d880.tar.gz
hdf5-08b00d7bfee352356b0e458c602682b54e47d880.tar.bz2
[svn-r73] Lots of added code for dataset I/O. Its now writing out datasets to the disk
correctly, but only in "native" format. I'm adding the data-type conversions and checking the reading later today.
Diffstat (limited to 'src/H5Osdim.c')
-rw-r--r--src/H5Osdim.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/H5Osdim.c b/src/H5Osdim.c
index 816443b..56a0be7 100644
--- a/src/H5Osdim.c
+++ b/src/H5Osdim.c
@@ -292,12 +292,17 @@ H5O_sim_dim_cache (H5G_entry_t *ent, const void *mesg)
} /* end if */
/* Check each dimension */
- for(u=0; u<sdim->rank; u++)
- if (ent->cache.sdata.dim[u] != sdim->size[u])
- {
- modified = BTRUE;
- ent->cache.sdata.dim[u] = sdim->size[u];
- } /* end if */
+ if(ent->cache.sdata.dim==NULL)
+ modified = BTRUE;
+ else
+ {
+ for(u=0; u<sdim->rank; u++)
+ if (ent->cache.sdata.dim[u] != sdim->size[u])
+ {
+ modified = BTRUE;
+ ent->cache.sdata.dim[u] = sdim->size[u];
+ } /* end if */
+ } /* end else */
} /* end else */
FUNC_LEAVE (modified);