From ea52eabc3d5c3386df80c55e60128ef4c3ee322e Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 20 Mar 2018 13:49:30 -0500 Subject: Correct typo for error checking malloc return value. --- src/H5CX.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v0.12