summaryrefslogtreecommitdiffstats
path: root/src/H5CX.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2018-03-20 18:49:30 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2018-03-20 18:49:30 (GMT)
commitea52eabc3d5c3386df80c55e60128ef4c3ee322e (patch)
tree0f3d360d08779422200e2d50e1bb692b3475d025 /src/H5CX.c
parent91244f1d27af6cd0958c0fd04d5a51cf3f049428 (diff)
downloadhdf5-ea52eabc3d5c3386df80c55e60128ef4c3ee322e.zip
hdf5-ea52eabc3d5c3386df80c55e60128ef4c3ee322e.tar.gz
hdf5-ea52eabc3d5c3386df80c55e60128ef4c3ee322e.tar.bz2
Correct typo for error checking malloc return value.
Diffstat (limited to 'src/H5CX.c')
-rw-r--r--src/H5CX.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5CX.c b/src/H5CX.c
index 7884506..ad84bd9 100644
--- a/src/H5CX.c
+++ b/src/H5CX.c
@@ -349,7 +349,7 @@ H5CX__init_package(void)
#ifndef H5_HAVE_THREADSAFE
/* Allocate the context stack head pointer */
- if(NULL = (H5CX_head_g = (H5CX_node_t **)HDmalloc(sizeof(H5CX_node_t *))))
+ if(NULL == (H5CX_head_g = (H5CX_node_t **)HDmalloc(sizeof(H5CX_node_t *))))
HGOTO_ERROR(H5E_CONTEXT, H5E_CANTALLOC, FAIL, "can't allocate pointer to head of context stack")
*H5CX_head_g = NULL;
#endif /* H5_HAVE_THREADSAFE */