Browse Source

fixing a coverity warning (even if it is a false positive)

Stasik0 9 years ago
parent
commit
a8bb02c9a1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/server/ua_server_addressspace.c

+ 1 - 0
src/server/ua_server_addressspace.c

@@ -335,6 +335,7 @@ UA_Server_addNodeWithSession(UA_Server *server, UA_Session *session, UA_Node *no
     //namespace index is assumed to be valid
     const UA_Node *managed = UA_NULL;
     UA_NodeId tempNodeid;
+    UA_NodeId_init(&tempNodeid);
     UA_NodeId_copy(&node->nodeId, &tempNodeid);
     tempNodeid.namespaceIndex = 0;
     if(UA_NodeId_isNull(&tempNodeid)) {