Skip to content

Commit 00e26bd

Browse files
committed
fix: maybe-uninitialized warning
1 parent 9c72552 commit 00e26bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backends/open62541/src/import.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ static void addNodeImpl(AddNodeContext *context, NL_Node *node)
440440
addedNodeStatus = handleViewNode((const NL_ViewNode *)node, &id, &parentId,
441441
&parentReferenceId, &lt, &qn, &description, ServerContext_getServerObject(context->serverContext));
442442
break;
443+
default:
444+
addedNodeStatus = UA_STATUSCODE_BADNOTIMPLEMENTED;
443445
}
444446
// If a node was not added to the server due to an error, we add such a node
445447
// to a special node container. We can then try to add such nodes later.

0 commit comments

Comments
 (0)