summaryrefslogtreecommitdiffstats
path: root/src/H5Gnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Gnode.c')
-rw-r--r--src/H5Gnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index 5eb24d7..5e6c862 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -758,7 +758,7 @@ H5G_node_insert(H5F_t *f, const haddr_t *addr,
offset = H5H_insert(f, &(bt_udata->heap_addr), HDstrlen(bt_udata->name)+1,
bt_udata->name);
bt_udata->ent.name_off = offset;
- if (offset <= 0) {
+ if (0==offset || (size_t)(-1)==offset) {
HGOTO_ERROR(H5E_SYM, H5E_CANTINSERT, H5B_INS_ERROR,
"unable to insert symbol name into heap");
}