pkgsrc/audio/sound-juicer/patches/patch-ad
drochner 9d4d99d6a4 avoid crashes if the disk title or artist cannot be identified
(just workarounds, the code is too messy for a real fix),
bump PKGREVISION
2009-08-10 10:00:19 +00:00

14 lines
375 B
Text

$NetBSD: patch-ad,v 1.1 2009/08/10 10:00:19 drochner Exp $
--- src/sj-extracting.c.orig 2009-02-10 22:55:51.000000000 +0100
+++ src/sj-extracting.c
@@ -855,6 +855,9 @@ sanitize_path (const char* str, const ch
gchar *res = NULL;
gchar *s;
+ if (!str)
+ return NULL;
+
/* Skip leading periods, otherwise files disappear... */
while (*str == '.')
str++;