浏览代码

mingw complains about a non-initialized variable

Julius Pfrommer 9 年之前
父节点
当前提交
23980d297d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/server/ua_server_binary.c

+ 1 - 1
src/server/ua_server_binary.c

@@ -302,7 +302,7 @@ sendError(UA_SecureChannel *channel, const UA_ByteString *msg, size_t pos,
 static void
 processMSG(UA_Connection *connection, UA_Server *server, const UA_ByteString *msg, size_t *pos) {
     /* If we cannot decode these, don't respond */
-    UA_UInt32 secureChannelId;
+    UA_UInt32 secureChannelId = 0;
     UA_UInt32 tokenId = 0;
     UA_SequenceHeader sequenceHeader;
     UA_NodeId requestTypeId;