Skip to content

Commit

Permalink
Image: Fix uninitialized read without SIMD
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Nov 23, 2024
1 parent b984f34 commit 5d85198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ void RGBA8Image::SwapBGRAToRGBA(void* pixels, u32 width, u32 height, u32 pitch)
}
#endif

for (; x < width; x++)
for (x = 0; x < width; x++)
{
u32 pixel;
std::memcpy(&pixel, row_pixels_ptr, sizeof(pixel));
Expand Down

0 comments on commit 5d85198

Please sign in to comment.