diff options
| author | 2022-05-17 18:27:49 +0100 | |
|---|---|---|
| committer | 2022-05-17 18:28:58 +0100 | |
| commit | 72f7cb89181e60ee4f64828612f2cf3b19e2db37 (patch) | |
| tree | 1897eeb35c41d3b9675bbd9f05ce04af2824fedb /src | |
| parent | Get rid of GetVersionString. (diff) | |
| download | inspircd++-72f7cb89181e60ee4f64828612f2cf3b19e2db37.tar.gz inspircd++-72f7cb89181e60ee4f64828612f2cf3b19e2db37.tar.bz2 inspircd++-72f7cb89181e60ee4f64828612f2cf3b19e2db37.zip | |
Initialize some variables which are checked before being assigned.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coremods/core_whowas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |
