mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +01:00
Fix of warning: may be used uninitialized in this function
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -500,6 +500,7 @@ char* MQTTGWPacket::getMsgId(char* pbuf)
|
|||||||
{
|
{
|
||||||
case PUBLISH:
|
case PUBLISH:
|
||||||
Publish pub;
|
Publish pub;
|
||||||
|
pub.msgId = 0;
|
||||||
getPUBLISH(&pub);
|
getPUBLISH(&pub);
|
||||||
if ( _header.bits.dup )
|
if ( _header.bits.dup )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user