From 252883f67efaf4915941d3521889cab92c8987a4 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Wed, 9 Feb 2022 17:57:35 +0100 Subject: [PATCH] set rx and txBytes to zero on initialization (#4569) --- servatrice/src/servatrice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servatrice/src/servatrice.cpp b/servatrice/src/servatrice.cpp index 25a862dc..eeb4c525 100644 --- a/servatrice/src/servatrice.cpp +++ b/servatrice/src/servatrice.cpp @@ -194,8 +194,8 @@ void Servatrice_IslServer::incomingConnection(qintptr socketDescriptor) } Servatrice::Servatrice(QObject *parent) - : Server(parent), authenticationMethod(AuthenticationNone), uptime(0), shutdownTimer(nullptr), - isFirstShutdownMessage(true) + : Server(parent), authenticationMethod(AuthenticationNone), uptime(0), txBytes(0), rxBytes(0), + shutdownTimer(nullptr), isFirstShutdownMessage(true) { qRegisterMetaType("QSqlDatabase"); }