mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
Initialize variable to silence warning [-Wsometimes-uninitialized]
It's uninitialized if the else {} is hit.
This commit is contained in:
parent
3dadfa564d
commit
52c7839741
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user