fixed usage of an uninitialized variable in WHOHandler.c
authorpk910 <philipp@zoelle1.de>
Wed, 5 Oct 2011 20:36:07 +0000 (22:36 +0200)
committerpk910 <philipp@zoelle1.de>
Wed, 5 Oct 2011 20:36:07 +0000 (22:36 +0200)
src/HandleInfoHandler.c
src/WHOHandler.c

index 3bed0433d3e88fde8440a2637a76ab58a2e02eba..c03abcee713ca6f499ea357478a28684172b4c25 100644 (file)
@@ -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;
index 02f5e6251cded9b19d1674c839d0897a10895b0a..3ebe0bd186eee6306ae77080d72021e216854735 100644 (file)
@@ -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;