Initialize variable to silence warning [-Wsometimes-uninitialized]

It's uninitialized if the else {} is hit.
This commit is contained in:
Sergio Martins 2015-05-02 23:29:19 +01:00
parent 3dadfa564d
commit 52c7839741

View File

@ -86,7 +86,7 @@ static inline bool decodeRLEData(RLEVariant variant,
stream >> count1;
if (count1 >= 128u) {
unsigned length;
unsigned length = 0;
if (variant == RLEVariant::PIC) {
if (count1 == 128u) {
// If the value is exactly 128, it means that it is more than