diff options
Diffstat (limited to 'src/db/update/Archive.cxx')
-rw-r--r-- | src/db/update/Archive.cxx | 3 |
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; |