fixed usage of an uninitialized variable in WHOHandler.c
[NeonServV5.git] / src / WHOHandler.c
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;