Browse Source

fixing unitialized variable

Stasik0 9 years ago
parent
commit
4ee002c1b2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/ua_server_binary.c

+ 1 - 1
src/server/ua_server_binary.c

@@ -213,7 +213,7 @@ static void processMSG(UA_Connection *connection, UA_Server *server, const UA_By
     }
 
     /* Read the security header */
-    UA_UInt32 tokenId;
+    UA_UInt32 tokenId = 0;
     UA_SequenceHeader sequenceHeader;
     retval = UA_UInt32_decodeBinary(msg, pos, &tokenId);
     retval |= UA_SequenceHeader_decodeBinary(msg, pos, &sequenceHeader);