From ae5a6605cb16884173f0956d398dfdf53ddd77c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Tue, 30 Jul 2019 00:24:17 +0200 Subject: [PATCH] babl: initialize buffer pointers 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c index f9e2122..4c2e315 100644 --- a/babl/babl-fish-reference.c +++ b/babl/babl-fish-reference.c @@ -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); -- 2.30.2