ソースを参照

msvc complains about a possibly unitialized variable

Julius Pfrommer 9 年 前
コミット
1c03b7f17d
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/server/ua_services_attribute.c

+ 1 - 1
src/server/ua_services_attribute.c

@@ -564,7 +564,7 @@ static UA_StatusCode
 CopyAttributeIntoNode(UA_Server *server, UA_Session *session, UA_Node *node, const UA_WriteValue *wvalue) {
     UA_StatusCode retval = UA_STATUSCODE_GOOD;
     void *value = wvalue->value.value.data;
-    void *target;
+    void *target = NULL;
     const UA_DataType *type = NULL;
 	switch(wvalue->attributeId) {
     case UA_ATTRIBUTEID_NODEID: