Skip to content

Commit

Permalink
read_scanline(): initialize next_filter
Browse files Browse the repository at this point in the history
  • Loading branch information
randy408 committed Apr 28, 2021
1 parent f2c3362 commit 9f79ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spng/spng.c
Original file line number Diff line number Diff line change
Expand Up @@ -2588,7 +2588,7 @@ static int read_scanline(spng_ctx *ctx)
size_t scanline_width = sub[pass].scanline_width;
uint32_t scanline_idx = ri->scanline_idx;

uint8_t next_filter;
uint8_t next_filter = 0;

if(scanline_idx == (sub[pass].height - 1) && ri->pass == ctx->last_pass)
{
Expand Down

0 comments on commit 9f79ea0

Please sign in to comment.