mirror of https://github.com/eclipse/paho.mqtt.c
Merge branch 'property-zero-initialize' of github.com:fpagliughi/paho.mqtt.c into fpagliughi-property-zero-initialize
This commit is contained in:
commit
48d3b68733
|
|
@ -245,6 +245,7 @@ int MQTTProperty_read(MQTTProperty* prop, char** pptr, char* enddata)
|
|||
int type = -1,
|
||||
len = -1;
|
||||
|
||||
memset(prop, 0, sizeof(MQTTProperty));
|
||||
prop->identifier = readChar(pptr);
|
||||
type = MQTTProperty_getType(prop->identifier);
|
||||
if (type >= MQTTPROPERTY_TYPE_BYTE && type <= MQTTPROPERTY_TYPE_UTF_8_STRING_PAIR)
|
||||
|
|
|
|||
Loading…
Reference in New Issue