瀏覽代碼

fix a gcc issue when compiling as MinSizeRel

Julius Pfrommer 7 年之前
父節點
當前提交
de8ee2768d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/server/ua_services_nodemanagement.c

+ 1 - 1
src/server/ua_services_nodemanagement.c

@@ -696,7 +696,7 @@ Service_AddNodes_single(UA_Server *server, UA_Session *session,
                         const UA_AddNodesItem *item, UA_AddNodesResult *result,
                         UA_InstantiationCallback *instantiationCallback) {
     /* Create the node from the attributes*/
-    UA_Node *node;
+    UA_Node *node = NULL;
     result->statusCode = createNodeFromAttributes(server, item, &node);
     if(result->statusCode != UA_STATUSCODE_GOOD)
         return;