diff options
-rw-r--r-- | src/update.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/update.c b/src/update.c index 6c8b6e7bc..35605ee51 100644 --- a/src/update.c +++ b/src/update.c @@ -394,10 +394,9 @@ unsigned directory_update_init(char *path) if (progress != UPDATE_PROGRESS_IDLE) { unsigned next_task_id; - if (!path) - return 0; if (update_paths_nr == ARRAY_SIZE(update_paths)) { - free(path); + if (path) + free(path); return 0; } |