aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/update.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/update.c b/src/update.c
index 6697a14c2..564e691d0 100644
--- a/src/update.c
+++ b/src/update.c
@@ -388,6 +388,7 @@ static enum update_return updatePath(const char *utf8path)
}
/* we don't want to delete the root directory */
else if (directory == db_get_root()) {
+ clear_directory(directory);
return UPDATE_RETURN_NOUPDATE;
}
/* if updateDirectory fails, means we should delete it */