aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-08 11:08:16 +0200
committerMax Kellermann <max@duempel.org>2008-10-08 11:08:16 +0200
commit0bfe7802d251286db03c7d9dfd1b3cd325060863 (patch)
tree8f71eda8f6243b2e0b71fb3458beff3ddd244e7e /src/directory.h
parent3b6efa99daf466f95407560b294fce5e5170ef63 (diff)
downloadmpd-0bfe7802d251286db03c7d9dfd1b3cd325060863.tar.gz
mpd-0bfe7802d251286db03c7d9dfd1b3cd325060863.tar.xz
mpd-0bfe7802d251286db03c7d9dfd1b3cd325060863.zip
directory: path must not be NULL
For the root directory, let's set path to an empty string. This saves a few checks.
Diffstat (limited to '')
-rw-r--r--src/directory.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/directory.h b/src/directory.h
index d8a8ea2af..ad24ca56f 100644
--- a/src/directory.h
+++ b/src/directory.h
@@ -73,8 +73,6 @@ directory_is_empty(struct directory *directory)
static inline const char *
directory_get_path(struct directory *directory)
{
- if (directory->path == NULL)
- return "";
return directory->path;
}