aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/directory_save.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/directory_save.c b/src/directory_save.c
index 132508447..d768a36c8 100644
--- a/src/directory_save.c
+++ b/src/directory_save.c
@@ -126,6 +126,14 @@ directory_load(FILE *fp, struct directory *directory, GError **error)
return false;
}
+ if (*name == 0)
+ /* workaround: a base name that
+ consists only of spaces is cleared
+ by g_strchomp(), and that may cause
+ an assertion failure in
+ directory_new() */
+ continue;
+
subdir = directory_get_child(directory, name);
if (subdir != NULL) {
assert(subdir->parent == directory);