diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-10-09 16:10:38 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-10-09 16:10:38 +0200 |
commit | f083c21276545263a0b23d829139c6732b837af3 (patch) | |
tree | 06e60500aafaa8524489d56de82b7a5132c79240 /libk9copy | |
parent | e4340cf7aa0b6fbd604bdd7c3e66768508a589aa (diff) | |
download | k9copy-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 'libk9copy')
-rwxr-xr-x | libk9copy/k9dvd.cpp | 2 | ||||
-rwxr-xr-x | libk9copy/k9dvdbackup.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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); |