From e308c3da83edb7d8cc13f43ff4fbf593df74caeb Mon Sep 17 00:00:00 2001 From: tomoaki Date: Sun, 12 Aug 2018 14:59:51 +0900 Subject: [PATCH] Correction to eliminate compiler warning message Signed-off-by: tomoaki --- MQTTSNGateway/src/MQTTGWPacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MQTTSNGateway/src/MQTTGWPacket.cpp b/MQTTSNGateway/src/MQTTGWPacket.cpp index 67ff660..45cb9d8 100644 --- a/MQTTSNGateway/src/MQTTGWPacket.cpp +++ b/MQTTSNGateway/src/MQTTGWPacket.cpp @@ -568,12 +568,12 @@ void MQTTGWPacket::setMsgId(int msgId) { int type = getType(); unsigned char* ptr = 0; - int len = 0; switch ( type ) { case PUBLISH: Publish pub; + pub.topiclen = 0; pub.msgId = 0; getPUBLISH(&pub); pub.msgId = msgId;