summaryrefslogtreecommitdiffstats
path: root/src/H5Ocache.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@hdfgroup.org>2014-01-03 20:45:08 (GMT)
committerVailin Choi <vchoi@hdfgroup.org>2014-01-03 20:45:08 (GMT)
commit21eabe6753e0c8cc2e5b7f6e3f69181b0bff9d2a (patch)
tree0309af908decdb4faec45bed6dd58d0b875169a0 /src/H5Ocache.c
parent2cbf8b46709eb67046e275c764f6b3e2256bcd35 (diff)
downloadhdf5-21eabe6753e0c8cc2e5b7f6e3f69181b0bff9d2a.zip
hdf5-21eabe6753e0c8cc2e5b7f6e3f69181b0bff9d2a.tar.gz
hdf5-21eabe6753e0c8cc2e5b7f6e3f69181b0bff9d2a.tar.bz2
[svn-r24610] Bring revision #24608 from revise_chunks.
h5committested.
Diffstat (limited to 'src/H5Ocache.c')
-rw-r--r--src/H5Ocache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ocache.c b/src/H5Ocache.c
index 7c896c1..f03dc55 100644
--- a/src/H5Ocache.c
+++ b/src/H5Ocache.c
@@ -1626,7 +1626,7 @@ H5O_chunk_proxy_dest(H5O_chunk_proxy_t *chk_proxy)
HDassert(chk_proxy);
/* Decrement reference count of object header */
- if(H5O_dec_rc(chk_proxy->oh) < 0)
+ if(chk_proxy->oh && H5O_dec_rc(chk_proxy->oh) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_CANTDEC, FAIL, "can't decrement reference count on object header")
/* Release the chunk proxy object */