[babl] babl-palette: initialize radii of default palette



commit c5714d3689c23c716882f5f15be0f3cc3c0d3684
Author: Ell <ell_se yahoo com>
Date:   Fri May 18 09:01:26 2018 -0400

    babl-palette: initialize radii of default palette
    
    ... to prevent a segfault when using the default palette, namely,
    in tests/palette.

 babl/babl-palette.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/babl/babl-palette.c b/babl/babl-palette.c
index 0afdcfe..0f8ad0a 100644
--- a/babl/babl-palette.c
+++ b/babl/babl-palette.c
@@ -300,6 +300,7 @@ static BablPalette *default_palette (void)
   babl_process (babl_fish (pal.format, babl_format ("RGBA double")),
                 pal.data, pal.data_double, pal.count);
 
+  babl_palette_init_radii (&pal);
   babl_palette_reset_hash (&pal);
   return &pal;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]