aboutsummaryrefslogtreecommitdiffstats
path: root/src/update.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-13 09:55:03 +0200
committerMax Kellermann <max@duempel.org>2008-10-13 09:55:03 +0200
commit3035a3303d8b5696542012e0e05b75daf9601f9b (patch)
tree527479614fb1f7a74ba9dd5cb313029014656788 /src/update.c
parent8d907fb9fafaeddeb237e494ff461d2df6c03af4 (diff)
downloadmpd-3035a3303d8b5696542012e0e05b75daf9601f9b.tar.gz
mpd-3035a3303d8b5696542012e0e05b75daf9601f9b.tar.xz
mpd-3035a3303d8b5696542012e0e05b75daf9601f9b.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.
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c5
1 files changed, 2 insertions, 3 deletions
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;
}