summaryrefslogtreecommitdiffstats
path: root/src/H5H.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5H.c')
-rw-r--r--src/H5H.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5H.c b/src/H5H.c
index 3a09c50..dc0a10c 100644
--- a/src/H5H.c
+++ b/src/H5H.c
@@ -292,7 +292,7 @@ H5H_flush (hdf5_file_t *f, hbool_t destroy, haddr_t addr, H5H_t *heap)
*/
HDmemcpy (p, H5H_MAGIC, H5H_SIZEOF_MAGIC); p += H5H_SIZEOF_MAGIC;
H5F_encode_length (f, p, heap->mem_alloc);
- H5F_encode_offset (f, p, fl?fl->offset:-1);
+ H5F_encode_offset (f, p, fl?fl->offset:H5H_FREE_NULL);
H5F_encode_offset (f, p, heap->addr);
/*