aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Archive.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-06 09:37:07 +0100
committerMax Kellermann <max@duempel.org>2015-11-06 09:37:07 +0100
commitc880099deb41c09ea7844daa27a42dac4142c0cd (patch)
tree571482d1e6e7efc95ab7d443f246232188d3c23f /src/db/update/Archive.cxx
parent42f5ecd4a116c96d30bf407859dadaa9a053ea39 (diff)
downloadmpd-c880099deb41c09ea7844daa27a42dac4142c0cd.tar.gz
mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.tar.xz
mpd-c880099deb41c09ea7844daa27a42dac4142c0cd.zip
util/StringCompare: add StringIsEmpty()
Diffstat (limited to '')
-rw-r--r--src/db/update/Archive.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx
index e818ab279..78ebbdb10 100644
--- a/src/db/update/Archive.cxx
+++ b/src/db/update/Archive.cxx
@@ -31,6 +31,7 @@
#include "archive/ArchiveFile.hxx"
#include "archive/ArchiveVisitor.hxx"
#include "util/Error.hxx"
+#include "util/StringCompare.hxx"
#include "Log.hxx"
#include <string>
@@ -54,7 +55,7 @@ UpdateWalk::UpdateArchiveTree(Directory &directory, const char *name)
//create directories first
UpdateArchiveTree(*subdir, tmp + 1);
} else {
- if (strlen(name) == 0) {
+ if (StringIsEmpty(name)) {
LogWarning(update_domain,
"archive returned directory only");
return;