- Add patches to fix issues reported by valgrind (boo#1180352): * 0001-Initialize-Transfer-m_runningSeconds.patch * 0002-Don-t-create-dangling-iterators-in-TransferMultiSegK.patch- OBS-URL: https://build.opensuse.org/request/show/859844 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kget?expand=0&rev=135
24 lines
924 B
Diff
24 lines
924 B
Diff
From 21fe11c2d0be6d135d3ffe87e925ae7eeea7f653 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Wed, 30 Dec 2020 17:16:49 +0100
|
|
Subject: [PATCH 1/2] Initialize Transfer::m_runningSeconds
|
|
|
|
Valgrind complained about that.
|
|
---
|
|
core/transfer.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
Index: kget-20.12.0/core/transfer.cpp
|
|
===================================================================
|
|
--- kget-20.12.0.orig/core/transfer.cpp
|
|
+++ kget-20.12.0/core/transfer.cpp
|
|
@@ -49,7 +49,7 @@ Transfer::Transfer(TransferGroup * paren
|
|
m_percent(0), m_downloadSpeed(0), m_uploadSpeed(0),
|
|
m_uploadLimit(0), m_downloadLimit(0), m_isSelected(false),
|
|
m_capabilities(0), m_visibleUploadLimit(0), m_visibleDownloadLimit(0),
|
|
- m_ratio(0), m_handler(nullptr), m_factory(factory)
|
|
+ m_runningSeconds(0), m_ratio(0), m_handler(nullptr), m_factory(factory)
|
|
{
|
|
Q_UNUSED(e)
|
|
}
|