Skip to content

Commit

Permalink
[GLib] JPEG2000 produces warning about maybe uninitialized variable
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=246248

Reviewed by Darin Adler.

* Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:
(WebCore::JPEG2000ImageDecoder::decode): Initialize alpha value to 0xFF.

Canonical link: https://commits.webkit.org/255674@main
  • Loading branch information
aperezdc committed Oct 18, 2022
1 parent 14bba72 commit 9a76ccc
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -503,7 +503,7 @@ void JPEG2000ImageDecoder::decode(bool onlySize, bool allDataReceived)
const IntRect& frameRect = buffer.backingStore()->frameRect();
for (int y = 0; y < frameRect.height(); ++y) {
for (int x = 0; x < frameRect.width(); ++x) {
int r, g, b, a;
int r, g, b, a = 0xFF;

int offset;
if (subsampling) {
Expand Down

0 comments on commit 9a76ccc

Please sign in to comment.