Handle empty path as relative.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 21 Sep 2010 01:31:18 +0000 (01:31 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 21 Sep 2010 01:31:18 +0000 (01:31 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@801 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/util/PathResolver.cpp

index c0f2c11..95a1eea 100644 (file)
@@ -78,6 +78,8 @@ void PathResolver::setCfgDir(const char* dir)
 bool PathResolver::isAbsolute(const char* s) const
 {
     switch (*s) {
+        case 0:
+            return false;
         case '/':
         case '\\':
             return true;