summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-10-02 18:32:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-10-02 18:32:46 (GMT)
commita36a5b30d79f037169fc5cf95a2a600ded674409 (patch)
treeac3be1996387a4eec46a30ae90b3fd6d96fc6b0f /src/H5Fsuper.c
parent9da1caea1527bf06a8c1fedd49992f49c5f2afaf (diff)
downloadhdf5-a36a5b30d79f037169fc5cf95a2a600ded674409.zip
hdf5-a36a5b30d79f037169fc5cf95a2a600ded674409.tar.gz
hdf5-a36a5b30d79f037169fc5cf95a2a600ded674409.tar.bz2
[svn-r12705] Description:
Fix file handle destroy routine to not attempt to flush out partially initialized file handles (when opening a file fails). Tested on: (until they finished testing, this time... :-) FreeBSD/32 4.11 (sleipnir) w/threadsafe Linux/64 2.4 (mir) w/1.6 compat Linux/32 2.4 (heping) w/FORTRAN & C++ Mac OSX/32 10.4.8 (amazon)
Diffstat (limited to 'src/H5Fsuper.c')
-rw-r--r--src/H5Fsuper.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index a4f7042..b7306b4 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -483,7 +483,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5F_write_superblock(H5F_t *f, hid_t dxpl_id, uint8_t *buf)
+H5F_write_superblock(H5F_t *f, hid_t dxpl_id)
{
uint8_t sbuf[H5F_SUPERBLOCK_SIZE]; /* Superblock encoding buffer */
uint8_t dbuf[H5F_DRVINFOBLOCK_SIZE];/* Driver info block encoding buffer*/
@@ -622,13 +622,7 @@ H5F_write_superblock(H5F_t *f, hid_t dxpl_id, uint8_t *buf)
} /* end if */
} /* end if */
- /* Update the user's buffer, if given */
- if (buf) {
- HDmemcpy(buf, sbuf, superblock_size);
- HDmemcpy(&buf[superblock_size], dbuf, driver_size);
- } /* end if */
-
done:
FUNC_LEAVE_NOAPI(ret_value)
-}
+} /* end H5F_write_superblock() */