Basic C library for MQTT packet serialization and deserialization

Dependents:   MQTT MQTT MQTT MQTT ... more

Fork of MQTTPacket by MQTT

This library is part of the EclipseTM Paho project; specifically the embedded client.

A basic MQTT library in C for packet serialization and deserialization

Revision:
17:c5bd28cc139a
Parent:
14:c2052aee81de
Child:
18:bf36e077e7b8
--- a/MQTTPacket.c	Fri Aug 01 16:58:18 2014 +0000
+++ b/MQTTPacket.c	Fri Aug 01 17:25:52 2014 +0000
@@ -288,7 +288,7 @@
 int MQTTPacket_read(unsigned char* buf, int buflen, int (*getfn)(unsigned char*, int))
 {
 	int rc = -1;
-	MQTTHeader header;
+	MQTTHeader header = {0};
 	int len = 0;
 	int rem_len = 0;