mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
Correct typo for error checking malloc return value.
This commit is contained in:
parent
91244f1d27
commit
ea52eabc3d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user