Skip to content

Commit

Permalink
Revise H5CX_is_pushed return value
Browse files Browse the repository at this point in the history
Signed-off-by: Quincey Koziol <[email protected]>
  • Loading branch information
qkoziol committed Sep 27, 2024
1 parent c87cbce commit 86626a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/H5CX.c
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,17 @@ bool
H5CX_pushed(void)
{
H5CX_node_t **head = NULL; /* Pointer to head of API context list */
bool is_pushed = false; /* Flag to indicate context is pushed */

FUNC_ENTER_NOAPI_NOINIT_NOERR

head = H5CX_get_my_context(); /* Get the pointer to the head of the API context, for this thread */
assert(head);

FUNC_LEAVE_NOAPI(*head != NULL);
/* Set return value */
is_pushed = (*head != NULL);

FUNC_LEAVE_NOAPI(is_pushed)
}

/*-------------------------------------------------------------------------
Expand Down

0 comments on commit 86626a5

Please sign in to comment.