summaryrefslogtreecommitdiffstats
path: root/src/H5O.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-09-17 15:03:52 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-09-17 15:03:52 (GMT)
commit0b52a1324e8f9736ce5b4686cbec14d6102abbc9 (patch)
treead70420a896c5e08215026d4968acf284828d4f9 /src/H5O.c
parentc7ee2a5708df2f88ce439cda028886ee20593b77 (diff)
downloadhdf5-0b52a1324e8f9736ce5b4686cbec14d6102abbc9.zip
hdf5-0b52a1324e8f9736ce5b4686cbec14d6102abbc9.tar.gz
hdf5-0b52a1324e8f9736ce5b4686cbec14d6102abbc9.tar.bz2
[svn-r94] Removed encode/decode from fast/cache message functions.
Fixed uninitialized bytes appearing in the data file object header.
Diffstat (limited to 'src/H5O.c')
-rw-r--r--src/H5O.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5O.c b/src/H5O.c
index 95cb57a..75a5993 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -121,7 +121,7 @@ H5O_new (hdf5_file_t *f, intn nlink, size_t size_hint)
oh->chunk[0].dirty = TRUE;
oh->chunk[0].addr = addr + H5O_SIZEOF_HDR(f);
oh->chunk[0].size = size_hint;
- oh->chunk[0].image = H5MM_xmalloc (size_hint);
+ oh->chunk[0].image = H5MM_xcalloc (1, size_hint);
/* create the message list and initialize the first message */
oh->nmesgs = 1;