diff options
author | Max Kellermann <max@duempel.org> | 2009-01-04 19:08:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-04 19:08:52 +0100 |
commit | ea8ae68e6f1a686fd96530fdaf7b428e33f58ec4 (patch) | |
tree | 78752b26afcbc4807164c35721a6f99a540e93cd /src/update.c | |
parent | 923d2c966f2b8a3582156467ad46ea8d200b30f1 (diff) | |
download | mpd-ea8ae68e6f1a686fd96530fdaf7b428e33f58ec4.tar.gz mpd-ea8ae68e6f1a686fd96530fdaf7b428e33f58ec4.tar.xz mpd-ea8ae68e6f1a686fd96530fdaf7b428e33f58ec4.zip |
directory: added directory_is_root()
directory_is_root() is cheaper than
isRootDirectory(directory_get_path()).
Diffstat (limited to 'src/update.c')
-rw-r--r-- | src/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c index daf658e68..ec9890f31 100644 --- a/src/update.c +++ b/src/update.c @@ -290,7 +290,7 @@ make_subdir(struct directory *parent, const char *name) if (directory == NULL) { char path[MPD_PATH_MAX]; - if (isRootDirectory(directory_get_path(parent))) + if (directory_is_root(parent)) strcpy(path, name); else pfx_dir(path, name, strlen(name), |