Browse Source

Merge pull request #15450 from Chocobo1/pr_15303

Fix code defects
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
ce0b6f0d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/coverity-scan.yml
  2. 4
      src/base/utils/gzip.cpp
  3. 3
      src/gui/properties/propertieswidget.cpp

2
.github/workflows/coverity-scan.yml

@ -77,7 +77,7 @@ jobs: @@ -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

4
src/base/utils/gzip.cpp

@ -48,7 +48,7 @@ QByteArray Utils::Gzip::compress(const QByteArray &data, const int level, bool * @@ -48,7 +48,7 @@ QByteArray Utils::Gzip::compress(const QByteArray &data, const int level, bool *
const int BUFSIZE = 128 * 1024;
std::vector<char> 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) @@ -109,7 +109,7 @@ QByteArray Utils::Gzip::decompress(const QByteArray &data, bool *ok)
const int BUFSIZE = 1024 * 1024;
std::vector<char> tmpBuf(BUFSIZE);
z_stream strm;
z_stream strm {};
strm.zalloc = Z_NULL;
strm.zfree = Z_NULL;
strm.opaque = Z_NULL;

3
src/gui/properties/propertieswidget.cpp

@ -551,6 +551,9 @@ void PropertiesWidget::loadDynamicData() @@ -551,6 +551,9 @@ void PropertiesWidget::loadDynamicData()
void PropertiesWidget::loadUrlSeeds()
{
if (!m_torrent)
return;
m_ui->listWebSeeds->clear();
qDebug("Loading URL seeds");
const QVector<QUrl> hcSeeds = m_torrent->urlSeeds();

Loading…
Cancel
Save