Skip to content

Commit

Permalink
Fix C++ style loop init
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Craggs committed Jul 13, 2017
1 parent efadb74 commit 5d47e86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MQTTClient-C/src/MQTTClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ int keepalive(MQTTClient* c)

void MQTTCleanSession(MQTTClient* c)
{
for (int i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
int i = 0;

for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
c->messageHandlers[i].topicFilter = NULL;
}

Expand Down

0 comments on commit 5d47e86

Please sign in to comment.