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