diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-10-11 21:49:29 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-10-12 05:27:33 -0700 |
commit | afef3a6e68f4007f8e087b6ae359518ff59b04ef (patch) | |
tree | b95d808fdf1dfcf2c6b1f40555fba8b4bb975bbb /src/update.c | |
parent | 3e652ee92d4bbe2a9e68cc80b6d58a7f0e6a6093 (diff) | |
download | mpd-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.
Diffstat (limited to '')
-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; } |