diff options
Diffstat (limited to 'src/H5Oint.c')
-rw-r--r-- | src/H5Oint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Oint.c b/src/H5Oint.c index 18b2db0..ad5b7b7 100644 --- a/src/H5Oint.c +++ b/src/H5Oint.c @@ -2925,7 +2925,8 @@ H5O__dec_rc(H5O_t *oh) FUNC_ENTER_PACKAGE /* check args */ - HDassert(oh); + if (!oh) + HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid object header") /* Decrement reference count */ oh->rc--; |