From 307f5e6e56a8e239ce4a3453c59fcd8435859b6f Mon Sep 17 00:00:00 2001 From: gxcreator Date: Tue, 10 Aug 2021 09:15:23 +0300 Subject: [PATCH 1/3] Initialize member fields --- src/base/utils/gzip.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/utils/gzip.cpp b/src/base/utils/gzip.cpp index 4e28a2093..4a9b15bbf 100644 --- a/src/base/utils/gzip.cpp +++ b/src/base/utils/gzip.cpp @@ -48,7 +48,7 @@ QByteArray Utils::Gzip::compress(const QByteArray &data, const int level, bool * const int BUFSIZE = 128 * 1024; std::vector tmpBuf(BUFSIZE); - z_stream strm; + z_stream strm {}; strm.zalloc = Z_NULL; strm.zfree = Z_NULL; strm.opaque = Z_NULL; @@ -109,7 +109,7 @@ QByteArray Utils::Gzip::decompress(const QByteArray &data, bool *ok) const int BUFSIZE = 1024 * 1024; std::vector tmpBuf(BUFSIZE); - z_stream strm; + z_stream strm {}; strm.zalloc = Z_NULL; strm.zfree = Z_NULL; strm.opaque = Z_NULL; From 0783968121270eca62f9fb44a215476a447ba31d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 11 Sep 2021 11:50:29 +0800 Subject: [PATCH 2/3] Guard for null pointer --- src/gui/properties/propertieswidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 5f72852f3..0987ca141 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -551,6 +551,9 @@ void PropertiesWidget::loadDynamicData() void PropertiesWidget::loadUrlSeeds() { + if (!m_torrent) + return; + m_ui->listWebSeeds->clear(); qDebug("Loading URL seeds"); const QVector hcSeeds = m_torrent->urlSeeds(); From c701379a2e73516ac964a99eb4d11264b9bbaa7a Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 11 Sep 2021 12:07:52 +0800 Subject: [PATCH 3/3] Fix typo --- .github/workflows/coverity-scan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverity-scan.yml b/.github/workflows/coverity-scan.yml index 2a3fdf2f9..f721659a7 100644 --- a/.github/workflows/coverity-scan.yml +++ b/.github/workflows/coverity-scan.yml @@ -77,7 +77,7 @@ jobs: curl \ --form token=$TOKEN \ --form email=sledgehammer999@qbittorrent.org \ - --form file=@qbittorrent.tgz \ + --form file=@qbittorrent.xz \ --form version="$(git rev-parse --short HEAD)" \ --form description="master" \ https://scan.coverity.com/builds?project=qbittorrent%2FqBittorrent