$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++;
