babl: initialize buffer pointers
authorØyvind Kolås <pippin@gimp.org>
Mon, 29 Jul 2019 22:24:17 +0000 (00:24 +0200)
committerØyvind Kolås <pippin@gimp.org>
Mon, 29 Jul 2019 22:24:20 +0000 (00:24 +0200)
This silences a false warning from gcc, where it doesn't recognize the type
of control flow occuring with the pre/post switches in the reference
conversion.

babl/babl-fish-reference.c

index f9e21225dd07a7a9f00ed517928ec790d48e5cba..4c2e3150d7b7abcf2413c0a8d7bee14de48c39f8 100644 (file)
@@ -755,11 +755,11 @@ babl_fish_reference_process_double (const Babl *babl,
 
 
   void *source_double_buf_alloc = NULL;
-  void *source_double_buf;
+  void *source_double_buf       = NULL;
   void *rgba_double_buf_alloc   = NULL;
-  void *rgba_double_buf;
+  void *rgba_double_buf         = NULL;
   void *cmyka_double_buf_alloc  = NULL;
-  void *cmyka_double_buf;
+  void *cmyka_double_buf        = NULL;
   void *destination_double_buf_alloc = NULL;
   void *destination_double_buf;
   const void *type_double  = babl_type_from_id (BABL_DOUBLE);