X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffs%2Fpath.cpp;h=bd107f1378f128e813a646b9ad7d4a05516de2d7;hb=8bbba6b8cd02c33612fb173e6df48b130407af8f;hp=d68595bb55ee83588ce9ae7a535c9424cbbaabef;hpb=5a32939eb6e576c223e1be5f80226d9e628a2398;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;