mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +01:00
Update: change codes simple #86
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -230,12 +230,10 @@ Client* ClientList::createClient(SensorNetAddress* addr, MQTTSNString* clientId,
|
||||
else
|
||||
{
|
||||
MQTTSNString dummyId;
|
||||
char* id = (char*)malloc(1);
|
||||
*id = 0;
|
||||
dummyId.cstring = id;
|
||||
dummyId.cstring = strdup("");
|
||||
dummyId.lenstring.len = 0;
|
||||
client->setClientId(dummyId);
|
||||
free(id);
|
||||
free(dummyId.cstring);
|
||||
}
|
||||
|
||||
/* add the list */
|
||||
|
||||
Reference in New Issue
Block a user