aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-11 21:49:29 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-12 05:27:33 -0700
commitafef3a6e68f4007f8e087b6ae359518ff59b04ef (patch)
treeb95d808fdf1dfcf2c6b1f40555fba8b4bb975bbb
parent3e652ee92d4bbe2a9e68cc80b6d58a7f0e6a6093 (diff)
downloadmpd-afef3a6e68f4007f8e087b6ae359518ff59b04ef.tar.gz
mpd-afef3a6e68f4007f8e087b6ae359518ff59b04ef.tar.xz
mpd-afef3a6e68f4007f8e087b6ae359518ff59b04ef.zip
update: allow music_root updates to be queued
Previously only updates with subdirectories being specified could be queued. No harm in queueing full updates.
-rw-r--r--src/update.c5
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;
}