From: Mikko Rasa Date: Sun, 22 Aug 2021 09:18:42 +0000 (+0300) Subject: Fix Path::is_absolute for empty paths on Windows X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=c7f043246e16188634eccd4e87fa847a1d58a9c4 Fix Path::is_absolute for empty paths on Windows --- 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;