From: Øyvind Kolås Date: Thu, 30 Aug 2018 00:01:18 +0000 (+0200) Subject: babl-fish: handle case of no from_list in source X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~14^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f5296f7d51fa81588e08ff0c2e3cb1c8e47ea4f;p=babl.git babl-fish: handle case of no from_list in source --- diff --git a/babl/babl-fish.c b/babl/babl-fish.c index 0976de6..a530655 100644 --- a/babl/babl-fish.c +++ b/babl/babl-fish.c @@ -120,7 +120,8 @@ babl_conversion_find (const void *source, { void *data = (void*)destination; - babl_list_each (BABL (source)->type.from_list, match_conversion, &data); + if (BABL (source)->type.from_list) + babl_list_each (BABL (source)->type.from_list, match_conversion, &data); if (data != (void*)destination) /* didn't change */ return data; data = NULL;