Skip to content

Commit

Permalink
ChafaPalette: Init bins and heap in case of early exit
Browse files Browse the repository at this point in the history
  • Loading branch information
hpjansson committed Nov 20, 2024
1 parent f6f6f38 commit 12cacab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chafa/internal/chafa-palette.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ pnn_palette (ChafaPalette *pal, gconstpointer pixels,
{
ChafaVec3f32 rgb_weights =
CHAFA_VEC3F32_INIT (RED_WEIGHT_32f, GREEN_WEIGHT_32f, BLUE_WEIGHT_32f);
PnnBin *bins;
PnnBinIndex *heap;
PnnBin *bins = NULL;
PnnBinIndex *heap = NULL;
gfloat weight = 1.0f;
gfloat err;
gint quan_rt = 1;
Expand Down

0 comments on commit 12cacab

Please sign in to comment.