From: pk910 Date: Wed, 5 Oct 2011 20:36:07 +0000 (+0200) Subject: fixed usage of an uninitialized variable in WHOHandler.c X-Git-Tag: v5.3~302 X-Git-Url: http://git.pk910.de/?a=commitdiff_plain;ds=sidebyside;h=ee9e9778466f1f9a7f1f2c3991afa138f368a5fe;p=NeonServV5.git fixed usage of an uninitialized variable in WHOHandler.c --- diff --git a/src/HandleInfoHandler.c b/src/HandleInfoHandler.c index 3bed043..c03abce 100644 --- a/src/HandleInfoHandler.c +++ b/src/HandleInfoHandler.c @@ -63,7 +63,7 @@ static struct HandleInfoQueueEntry* getNextHandleInfoQueueEntry(struct ClientSoc if(entry == first_entry) first_entry = entry->next; if(entry == last_entry) { - struct HandleInfoQueueEntry *last; + struct HandleInfoQueueEntry *last = NULL; for(last = first_entry; last; last = last->next) if(last->next == NULL) break; last_entry = last; diff --git a/src/WHOHandler.c b/src/WHOHandler.c index 02f5e62..3ebe0bd 100644 --- a/src/WHOHandler.c +++ b/src/WHOHandler.c @@ -70,7 +70,7 @@ static struct WHOQueueEntry* getNextWHOQueueEntry(struct ClientSocket *client, i if(entry == first_entry) first_entry = entry->next; if(entry == last_entry) { - struct WHOQueueEntry *last; + struct WHOQueueEntry *last = NULL; for(last = first_entry; last; last = last->next) if(last->next == NULL) break; last_entry = last;