diff options
author | treblid <treblid@gmail.com> | 2012-02-13 14:44:28 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-13 14:44:28 +0100 |
commit | edac498d03b9de59d4e55081c92604ff2447a298 (patch) | |
tree | ab5cf90cd87fc90140fbe657c2d967dd9b3c5c62 /src | |
parent | d7d9dbd2c2798b6ff39acb07a3bed38b6f99e283 (diff) | |
download | mpd-edac498d03b9de59d4e55081c92604ff2447a298.tar.gz mpd-edac498d03b9de59d4e55081c92604ff2447a298.tar.xz mpd-edac498d03b9de59d4e55081c92604ff2447a298.zip |
directory: fix reverse order of child directories
Directories are loaded in reverse order when MPD starts. Only fixed
when doing a rescan.
Diffstat (limited to 'src')
-rw-r--r-- | src/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/directory.c b/src/directory.c index 12d61a81e..662b8907f 100644 --- a/src/directory.c +++ b/src/directory.c @@ -111,7 +111,7 @@ directory_new_child(struct directory *parent, const char *name_utf8) struct directory *directory = directory_new(path_utf8, parent); g_free(allocated); - list_add(&directory->siblings, &parent->children); + list_add_tail(&directory->siblings, &parent->children); return directory; } |