Commit 42557201 authored by Callum Attryde's avatar Callum Attryde

Make sure to initialise the message member of the failureData in…

Make sure to initialise the message member of the failureData in MQTTAsync_receiveThread Signed-off-by: Callum Attryde <callumattryde@gmail.com>
parent 94cc8f43
......@@ -1856,6 +1856,7 @@ static thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
data.token = command->command.token;
data.code = *(int*)(sub->qoss->first->content);
data.message = NULL;
Log(TRACE_MIN, -1, "Calling subscribe failure for client %s", m->c->clientID);
(*(command->command.onFailure))(command->command.context, &data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment