summaryrefslogtreecommitdiff
path: root/src/sj-extracting.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sj-extracting.c')
-rw-r--r--src/sj-extracting.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sj-extracting.c b/src/sj-extracting.c
index 6b10757..77871d5 100644
--- a/src/sj-extracting.c
+++ b/src/sj-extracting.c
@@ -862,6 +862,8 @@ sanitize_path (const char* str, const char* filesystem_type)
gchar *res = NULL;
gchar *s;
+ g_return_val_if_fail (str != NULL, NULL);
+
/* Skip leading periods, otherwise files disappear... */
while (*str == '.')
str++;