fixed some coverity warnings

This commit is contained in:
jeefo 2015-06-29 20:51:25 +03:00
commit 95c121ef43
10 changed files with 127 additions and 56 deletions

View file

@ -148,12 +148,18 @@ public:
{
m_textSize = 0;
m_codeSize = 0;
m_matchPosition = 0;
m_matchLength = 0;
}
~Compressor (void)
{
m_textSize = 0;
m_codeSize = 0;
m_matchPosition = 0;
m_matchLength = 0;
}
int InternalEncode (const char *fileName, byte *header, int headerSize, byte *buffer, int bufferSize)