aboutsummaryrefslogtreecommitdiff
path: root/common/unarj.cpp
diff options
context:
space:
mode:
authorD G Turner2013-10-05 07:02:18 +0100
committerD G Turner2013-10-05 07:02:18 +0100
commita1998abed4fd8e1abfc7cc5cb97978999849a29e (patch)
tree4668b4a128fbcccd67447dbf4b815a3380f1b3b6 /common/unarj.cpp
parent79b60c8ee8c3fd8f08605d1ee245acb3ec554f0a (diff)
downloadscummvm-rg350-a1998abed4fd8e1abfc7cc5cb97978999849a29e.tar.gz
scummvm-rg350-a1998abed4fd8e1abfc7cc5cb97978999849a29e.tar.bz2
scummvm-rg350-a1998abed4fd8e1abfc7cc5cb97978999849a29e.zip
COMMON: Fix missing arjDecoder class variable init. CID 1002929
This fixes a couple of these variables by removing them as they are unused or set-but-unused variables.
Diffstat (limited to 'common/unarj.cpp')
-rw-r--r--common/unarj.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/common/unarj.cpp b/common/unarj.cpp
index fe3c17a2ac..e8aed7cbd1 100644
--- a/common/unarj.cpp
+++ b/common/unarj.cpp
@@ -95,6 +95,12 @@ class ArjDecoder {
public:
ArjDecoder(const ArjHeader *hdr) {
_compsize = hdr->compSize;
+ _compressed = 0;
+ _outstream = 0;
+ _bitbuf = 0;
+ _bytebuf = 0;
+ _bitcount = 0;
+ _blocksize = 0;
}
~ArjDecoder() {
@@ -112,7 +118,6 @@ public:
uint16 _bitbuf;
uint16 _bytebuf;
int32 _compsize;
- byte _subbitbuf;
int _bitcount;
void init_getbits();
@@ -132,9 +137,6 @@ public:
private:
byte _ntext[ARJ_FDICSIZ];
- int16 _getlen;
- int16 _getbuf;
-
uint16 _left[2 * ARJ_NC - 1];
uint16 _right[2 * ARJ_NC - 1];
byte _c_len[ARJ_NC];
@@ -656,7 +658,6 @@ void ArjDecoder::decode_f(int32 origsize) {
init_getbits();
ncount = 0;
- _getlen = _getbuf = 0;
r = 0;
while (ncount < (uint32)origsize) {