summaryrefslogtreecommitdiff
path: root/src/File.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/File.cc')
-rw-r--r--src/File.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/File.cc b/src/File.cc
index 7d13b035..afe49bbc 100644
--- a/src/File.cc
+++ b/src/File.cc
@@ -34,6 +34,7 @@
/* copyright --> */
#include "File.h"
#include "Util.h"
+#include "A2STR.h"
#include <cstring>
#include <stdlib.h>
#include <deque>
@@ -142,8 +143,8 @@ std::string File::getDirname() const
{
std::string::size_type lastSlashIndex = name.find_last_of("/");
if(lastSlashIndex == std::string::npos) {
- if(name == "") {
- return "";
+ if(name.empty()) {
+ return A2STR::NIL;
} else {
return ".";
}