X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..e4c903b2ea42fe104ef50d0ea6028f14d8309dfa:/src/common/fs_arc.cpp?ds=sidebyside diff --git a/src/common/fs_arc.cpp b/src/common/fs_arc.cpp index 7511c8704c..6007d08ab1 100644 --- a/src/common/fs_arc.cpp +++ b/src/common/fs_arc.cpp @@ -358,7 +358,7 @@ wxFSFile* wxArchiveFSHandler::OpenFile( right = rightPart.GetFullPath(wxPATH_UNIX); } - if (right.GetChar(0) == wxT('/')) right = right.Mid(1); + if (!right.empty() && right.GetChar(0) == wxT('/')) right = right.Mid(1); if (!m_cache) m_cache = new wxArchiveFSCache;