diff options
author | Simon Rettberg | 2018-07-17 17:33:00 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-07-17 17:33:00 +0200 |
commit | 4545b84ab54be5bf7ea56f94c61755da72472859 (patch) | |
tree | ab37e295cf00eacdbe9f35e8e13d8f648fc45e17 | |
parent | [server] Small translation fixes (diff) | |
download | pvs2-4545b84ab54be5bf7ea56f94c61755da72472859.tar.gz pvs2-4545b84ab54be5bf7ea56f94c61755da72472859.tar.xz pvs2-4545b84ab54be5bf7ea56f94c61755da72472859.zip |
[client] Fix uninitialized variable access
-rw-r--r-- | src/client/net/serverconnection.cpp | 2 | ||||
-rw-r--r-- | src/client/toolbar/toolbar.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/net/serverconnection.cpp b/src/client/net/serverconnection.cpp index b2a6b0d..9ec5b02 100644 --- a/src/client/net/serverconnection.cpp +++ b/src/client/net/serverconnection.cpp @@ -19,7 +19,7 @@ #define CHALLENGE_LEN 20 ServerConnection::ServerConnection(const QString& host, const quint16 port, const QByteArray& sessionName, const QByteArray& certHash, bool autoConnect) : - QObject(NULL), _timerDelete(0), _jpegQuality(80), _authed(0), _autoConnect(autoConnect), _sessionName(sessionName), _certHash(certHash) + QObject(NULL), _timerDelete(0), _jpegQuality(80), _authed(0), _autoConnect(autoConnect), _isLocalConnection(-1), _sessionName(sessionName), _certHash(certHash) { _socket = new QSslSocket(); _blank = new BlankScreen(); diff --git a/src/client/toolbar/toolbar.cpp b/src/client/toolbar/toolbar.cpp index dc8181c..955731a 100644 --- a/src/client/toolbar/toolbar.cpp +++ b/src/client/toolbar/toolbar.cpp @@ -48,7 +48,7 @@ Toolbar::Toolbar(const QByteArray sessionName, QWidget *parent) * widget is deleted when its parent is deleted. */ Toolbar::Toolbar(const bool autoConnect, QWidget *parent) - : QWidget(parent), _showTimer(this), _hideTimer(this), _blinkTimer(this), _beWatchedEye(":eye") + : QWidget(parent), _showTimer(this), _hideTimer(this), _hideCountdown(10), _blinkTimer(this), _beWatchedEye(":eye") { qDebug() << "auto - constructor!"; init(); |