Browse Source

Fix unitialized scalar field bugs

adaptive-webui-19844
Vladimir Golovnev (Glassez) 9 years ago
parent
commit
ea8acf3bbd
  1. 3
      src/base/bittorrent/torrentcreatorthread.cpp
  2. 1
      src/base/net/smtp.cpp
  3. 2
      src/webui/abstractwebapplication.cpp

3
src/base/bittorrent/torrentcreatorthread.cpp

@ -60,6 +60,9 @@ bool fileFilter(const std::string &f)
TorrentCreatorThread::TorrentCreatorThread(QObject *parent) TorrentCreatorThread::TorrentCreatorThread(QObject *parent)
: QThread(parent) : QThread(parent)
, m_private(false)
, m_pieceSize(0)
, m_abort(false)
{ {
} }

1
src/base/net/smtp.cpp

@ -96,6 +96,7 @@ Smtp::Smtp(QObject *parent)
: QObject(parent) : QObject(parent)
, m_state(Init) , m_state(Init)
, m_useSsl(false) , m_useSsl(false)
, m_authType(AuthPlain)
{ {
#ifndef QT_NO_OPENSSL #ifndef QT_NO_OPENSSL
m_socket = new QSslSocket(this); m_socket = new QSslSocket(this);

2
src/webui/abstractwebapplication.cpp

@ -68,6 +68,7 @@ struct WebSession
WebSession(const QString& id) WebSession(const QString& id)
: id(id) : id(id)
{ {
updateTimestamp();
} }
void updateTimestamp() void updateTimestamp()
@ -349,7 +350,6 @@ bool AbstractWebApplication::sessionStart()
{ {
if (session_ == 0) { if (session_ == 0) {
session_ = new WebSession(generateSid()); session_ = new WebSession(generateSid());
session_->updateTimestamp();
sessions_[session_->id] = session_; sessions_[session_->id] = session_;
QNetworkCookie cookie(C_SID, session_->id.toUtf8()); QNetworkCookie cookie(C_SID, session_->id.toUtf8());

Loading…
Cancel
Save