From ee9e9778466f1f9a7f1f2c3991afa138f368a5fe Mon Sep 17 00:00:00 2001 From: pk910 Date: Wed, 5 Oct 2011 22:36:07 +0200 Subject: [PATCH] fixed usage of an uninitialized variable in WHOHandler.c --- src/HandleInfoHandler.c | 2 +- src/WHOHandler.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1