Bladeren bron

removed unnecessary node ID copy

Thomas Bender 7 jaren geleden
bovenliggende
commit
4c30ec02e9
1 gewijzigde bestanden met toevoegingen van 2 en 5 verwijderingen
  1. 2 5
      plugins/ua_nodestore_default.c

+ 2 - 5
plugins/ua_nodestore_default.c

@@ -329,12 +329,9 @@ UA_NodeMap_insertNode(void *context, UA_Node *node,
         }
     }
 
-    UA_NodeId tempNodeid;
-    tempNodeid = node->nodeId;
-    tempNodeid.namespaceIndex = 0;
     UA_NodeMapEntry **slot;
-    if(tempNodeid.identifierType == UA_NODEIDTYPE_NUMERIC &&
-       tempNodeid.identifier.numeric == 0) {
+    if(node->nodeId.identifierType == UA_NODEIDTYPE_NUMERIC &&
+            node->nodeId.identifier.numeric == 0) {
         /* create a random nodeid */
         /* start at least with 50,000 to make sure we don not conflict with nodes from the spec */
         /* E.g. adding a nodeset will create children while there are still other nodes which need to be created */