summaryrefslogtreecommitdiff
path: root/audio/sound-juicer/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/sound-juicer/patches/patch-ab')
-rw-r--r--audio/sound-juicer/patches/patch-ab13
1 files changed, 13 insertions, 0 deletions
diff --git a/audio/sound-juicer/patches/patch-ab b/audio/sound-juicer/patches/patch-ab
new file mode 100644
index 00000000000..d4b67b2f003
--- /dev/null
+++ b/audio/sound-juicer/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2009/07/26 18:31:22 drochner Exp $
+
+--- libjuicer/sj-metadata-musicbrainz3.c.orig 2009-04-06 18:28:51.000000000 +0200
++++ libjuicer/sj-metadata-musicbrainz3.c
+@@ -231,6 +231,8 @@ mb_list_albums (SjMetadata *metadata, ch
+ }
+
+ priv->disc = mb_read_disc (priv->cdrom);
++ if (!priv->disc)
++ return NULL;
+ if (url != NULL) {
+ mb_get_submission_url (priv->disc, NULL, 0, buffer, sizeof (buffer));
+ *url = g_strdup (buffer);