summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-10-09 14:10:38 (GMT)
committer Slávek Banko <slavek.banko@axis.cz>2016-10-09 14:10:38 (GMT)
commitf083c21276545263a0b23d829139c6732b837af3 (patch)
tree06e60500aafaa8524489d56de82b7a5132c79240
parente4340cf7aa0b6fbd604bdd7c3e66768508a589aa (diff)
downloadk9copy-f083c212.zip
k9copy-f083c212.tar.gz
Fix use of potentially uninitialized values
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--k9author/k9newtitle.cpp2
-rwxr-xr-xlibk9copy/k9dvd.cpp2
-rwxr-xr-xlibk9copy/k9dvdbackup.cpp2
-rw-r--r--src/k9play.cpp5
4 files changed, 5 insertions, 6 deletions
diff --git a/k9author/k9newtitle.cpp b/k9author/k9newtitle.cpp
index ae1eec5..6108eb4 100644
--- a/k9author/k9newtitle.cpp
+++ b/k9author/k9newtitle.cpp
@@ -74,7 +74,7 @@ void k9NewTitle::bAddClicked() {
m_k9Import->getRoot()->listView()->setColumnWidthMode(0,TQListView::Maximum);
item->setText(1,t.addSecs(fileInfo.getDuration()).toString("hh:mm:ss"));
- double increment;
+ double increment = 5*60*60;
int maxCh;
if (rbLength->isOn()) {
TQTime t;
diff --git a/libk9copy/k9dvd.cpp b/libk9copy/k9dvd.cpp
index 9be2380..ddb7fde 100755
--- a/libk9copy/k9dvd.cpp
+++ b/libk9copy/k9dvd.cpp
@@ -1042,7 +1042,7 @@ TQString &k9DVD::getFormat() {
}
int k9DVD::getVampsID(int type) {
- int abase;
+ int abase = 0;
if (type >= 0x80 && type <= 0x87) {
// AC3 audio
abase = 0x80;
diff --git a/libk9copy/k9dvdbackup.cpp b/libk9copy/k9dvdbackup.cpp
index e560a1d..32ffb15 100755
--- a/libk9copy/k9dvdbackup.cpp
+++ b/libk9copy/k9dvdbackup.cpp
@@ -760,7 +760,7 @@ uint32_t k9DVDBackup::copyVobu(k9DVDFile *_fileHandle,uint32_t _startSector,k9V
m_cellCopyList->addInbytes( DVD_VIDEO_LB_LEN);
else
m_cellCopyList->addFrcinbytes(DVD_VIDEO_LB_LEN);
- uint32_t end;
+ uint32_t end = 0;
if (badNavPack) {
setDummyPack(buf);
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();