Ver código fonte

fixing compiler warning

Stasik0 10 anos atrás
pai
commit
66ef887378
1 arquivos alterados com 1 adições e 1 exclusões
  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
             break;
         }
-        UA_Int32 length;
+        UA_Int32 length = 0;
         size_t pos = end_pos + 4;
         UA_Int32_decodeBinary(&received, &pos, &length);
         if(length < 32 || length > (UA_Int32)connection->localConf.maxMessageSize) {