Explorar o código

fixing compiler warning

Stasik0 %!s(int64=10) %!d(string=hai) anos
pai
achega
66ef887378
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/ua_securechannel.c

+ 1 - 1
src/ua_securechannel.c

@@ -40,7 +40,7 @@ UA_ByteString UA_Connection_completeMessages(UA_Connection *connection, UA_ByteS
             current.length = end_pos; // throw the remaining bytestring away
             current.length = end_pos; // throw the remaining bytestring away
             break;
             break;
         }
         }
-        UA_Int32 length;
+        UA_Int32 length = 0;
         size_t pos = end_pos + 4;
         size_t pos = end_pos + 4;
         UA_Int32_decodeBinary(&received, &pos, &length);
         UA_Int32_decodeBinary(&received, &pos, &length);
         if(length < 32 || length > (UA_Int32)connection->localConf.maxMessageSize) {
         if(length < 32 || length > (UA_Int32)connection->localConf.maxMessageSize) {