Explorar o código

msvc complains about a possibly unitialized variable

Julius Pfrommer %!s(int64=9) %!d(string=hai) anos
pai
achega
1c03b7f17d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: