mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
Initialize variable to silence warning [-Wsometimes-uninitialized]
It's uninitialized if the else {} is hit.
This commit is contained in:
@ -86,7 +86,7 @@ static inline bool decodeRLEData(RLEVariant variant,
|
|||||||
stream >> count1;
|
stream >> count1;
|
||||||
|
|
||||||
if (count1 >= 128u) {
|
if (count1 >= 128u) {
|
||||||
unsigned length;
|
unsigned length = 0;
|
||||||
if (variant == RLEVariant::PIC) {
|
if (variant == RLEVariant::PIC) {
|
||||||
if (count1 == 128u) {
|
if (count1 == 128u) {
|
||||||
// If the value is exactly 128, it means that it is more than
|
// If the value is exactly 128, it means that it is more than
|
||||||
|
Reference in New Issue
Block a user