summaryrefslogtreecommitdiff
path: root/graphics/babl
diff options
context:
space:
mode:
authorjdc <jdc>2012-05-25 07:37:21 +0000
committerjdc <jdc>2012-05-25 07:37:21 +0000
commitcfec8364b5c24b9ee6accef584fac0460b9a0c4f (patch)
tree93362d269ba275d33f57cba3c61a638f9a03f5f9 /graphics/babl
parent88c3cf5904f45a64a69ee073bab3ed4a3b35299b (diff)
downloadpkgsrc-cfec8364b5c24b9ee6accef584fac0460b9a0c4f.tar.gz
Fix a segmentation fault when generating documentation. See:
https://bugzilla.gnome.org/show_bug.cgi?id=676491
Diffstat (limited to 'graphics/babl')
-rw-r--r--graphics/babl/patches/patch-babl_babl-fish-reference.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/graphics/babl/patches/patch-babl_babl-fish-reference.c b/graphics/babl/patches/patch-babl_babl-fish-reference.c
new file mode 100644
index 00000000000..7f34750ba8e
--- /dev/null
+++ b/graphics/babl/patches/patch-babl_babl-fish-reference.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-babl_babl-fish-reference.c,v 1.1 2012/05/25 07:37:21 jdc Exp $
+
+Fix a segmentation fault when generating documentation. See:
+
+ https://bugzilla.gnome.org/show_bug.cgi?id=676491
+
+--- babl/babl-fish-reference.c.dist 2012-03-18 15:51:42.000000000 +0000
++++ babl/babl-fish-reference.c 2012-05-21 12:12:38.000000000 +0000
+@@ -137,10 +137,11 @@
+ }
+ }
+
+- babl_process (
+- assert_conversion_find (src_img->type[0], dst_img->type[0]),
+- src_img, dst_img,
+- n);
++ if (dst_img->data[0] != NULL)
++ babl_process (
++ assert_conversion_find (src_img->type[0], dst_img->type[0]),
++ src_img, dst_img,
++ n);
+ src_img->data[0] += src_img->type[0]->bits / 8;
+ }
+ babl_free (src_img);