summaryrefslogtreecommitdiffstats
path: root/src/k9play.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-10-09 16:10:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-10-09 16:10:38 +0200
commitf083c21276545263a0b23d829139c6732b837af3 (patch)
tree06e60500aafaa8524489d56de82b7a5132c79240 /src/k9play.cpp
parente4340cf7aa0b6fbd604bdd7c3e66768508a589aa (diff)
downloadk9copy-f083c21276545263a0b23d829139c6732b837af3.tar.gz
k9copy-f083c21276545263a0b23d829139c6732b837af3.zip
Fix use of potentially uninitialized values
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/k9play.cpp')
-rw-r--r--src/k9play.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/k9play.cpp b/src/k9play.cpp
index c21b561..915df89 100644
--- a/src/k9play.cpp
+++ b/src/k9play.cpp
@@ -239,9 +239,8 @@ void k9play::play() {
m_startSector=status.sector;
}
-
-
- KTempFile *bufferFile;
+
+ KTempFile *bufferFile = 0;
if (m_useCache) {
bufferFile=new KTempFile(locateLocal("tmp", "k9copy/k9p"), "");
m_output=bufferFile->file();