X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ffs%2Fpath.cpp;h=bd107f1378f128e813a646b9ad7d4a05516de2d7;hb=c7f043246e16188634eccd4e87fa847a1d58a9c4;hp=d68595bb55ee83588ce9ae7a535c9424cbbaabef;hpb=90fc7638aee23270fe005f86dd1b492d67015c13;p=libs%2Fcore.git diff --git a/source/fs/path.cpp b/source/fs/path.cpp index d68595b..bd107f1 100644 --- a/source/fs/path.cpp +++ b/source/fs/path.cpp @@ -59,7 +59,7 @@ unsigned Path::size() const bool Path::is_absolute() const { #ifdef _WIN32 - if(is_windows_drive((*this)[0])) + if(!empty() && is_windows_drive((*this)[0])) return true; #endif return path[0]==DIRSEP;