From 72f7cb89181e60ee4f64828612f2cf3b19e2db37 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 17 May 2022 18:27:49 +0100 Subject: Initialize some variables which are checked before being assigned. --- src/coremods/core_whowas.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/coremods/core_whowas.cpp b/src/coremods/core_whowas.cpp index 47623fba6..a87186410 100644 --- a/src/coremods/core_whowas.cpp +++ b/src/coremods/core_whowas.cpp @@ -148,15 +148,15 @@ namespace WhoWas FIFO whowas_fifo; /** Max number of WhoWas entries per user. */ - unsigned int GroupSize; + unsigned int GroupSize = 0; /** Max number of cumulative user-entries in WhoWas. * When max reached and added to, push out oldest entry FIFO style. */ - unsigned int MaxGroups; + unsigned int MaxGroups = 0; /** Max seconds a user is kept in WhoWas before being pruned. */ - unsigned int MaxKeep; + unsigned int MaxKeep = 0; /** Shrink all data structures to honor the current settings */ void Prune(); -- cgit v1.3.1-10-gc9f91