From 3035a3303d8b5696542012e0e05b75daf9601f9b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Oct 2008 09:55:03 +0200 Subject: update: allow music_root updates to be queued Previously only updates with subdirectories being specified could be queued. No harm in queueing full updates. --- src/update.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/update.c') diff --git a/src/update.c b/src/update.c index 84a9aa2e2..e07a32aff 100644 --- a/src/update.c +++ b/src/update.c @@ -417,10 +417,9 @@ 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; } -- cgit v1.2.3