Skip to content

Commit

Permalink
lib: fix coverity issue
Browse files Browse the repository at this point in the history
** CID 1575595:  Null pointer dereferences  (REVERSE_INULL)

Signed-off-by: Christian Hopps <[email protected]>
  • Loading branch information
choppsv1 committed Jan 12, 2024
1 parent d2c275a commit 008ba3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/northbound_oper.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,8 @@ static enum nb_error nb_op_ys_init_node_infos(struct nb_op_yield_state *ys)
if (node &&
!CHECK_FLAG(node->schema->nodetype, LYS_CONTAINER | LYS_LIST))
node = &node->parent->node;
assert(CHECK_FLAG(node->schema->nodetype, LYS_CONTAINER | LYS_LIST));
assert(!node ||
CHECK_FLAG(node->schema->nodetype, LYS_CONTAINER | LYS_LIST));
if (!node)
return NB_ERR_NOT_FOUND;

Expand Down

0 comments on commit 008ba3e

Please sign in to comment.