Skip to content

Commit

Permalink
UnzipPrivate: Fix Coverity 700810 Uninitialized scalar field
Browse files Browse the repository at this point in the history
Initialize both buffer1 and buffer2 arrays in the ctor
  • Loading branch information
Paul Harrison committed Jul 14, 2013
1 parent 34a1a8a commit 6f8eff5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/libs/libmythbase/unzip.cpp
Expand Up @@ -488,6 +488,9 @@ UnzipPrivate::UnzipPrivate()
headers = 0;
device = 0;

memset(buffer1, 0, sizeof(buffer1));
memset(buffer2, 0, sizeof(buffer2));

uBuffer = (unsigned char*) buffer1;
crcTable = (quint32*) get_crc_table();

Expand Down

0 comments on commit 6f8eff5

Please sign in to comment.