Fixed missing loop exit condition.

This commit is contained in:
Armin Novak 2015-03-11 11:33:17 +01:00
parent 5d3fa29a2c
commit 06df5049a7

View File

@ -61,7 +61,7 @@ wEventType* PubSub_FindEventType(wPubSub* pubSub, const char* EventName)
int index;
wEventType* event = NULL;
for (index = 0; pubSub->count; index++)
for (index = 0; index < pubSub->count; index++)
{
if (strcmp(pubSub->events[index].EventName, EventName) == 0)
{