From: Øyvind Kolås Date: Mon, 29 Jul 2019 22:24:17 +0000 (+0200) Subject: babl: initialize buffer pointers X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~11^2~42 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ae5a6605cb16884173f0956d398dfdf53ddd77c5;p=babl.git 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. --- 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);