X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12e7bc479e855bb0336a8943ab18c0de47f4b39d..ee7ee4698c8c845e134c23a5e8a4a63cdd3de797:/src/common/config.cpp diff --git a/src/common/config.cpp b/src/common/config.cpp index b7c4a11854..1ba9f4edf2 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -114,7 +114,7 @@ wxConfigBase::PathChanger::PathChanger(const wxConfigBase *pContainer, wxString strPath = strEntry.Before(wxCONFIG_PATH_SEPARATOR); // special case of "/keyname" when there is nothing before "/" - if ( strPath.IsEmpty() && strEntry[0] == wxCONFIG_PATH_SEPARATOR ) + if ( strPath.IsEmpty() && ((!strEntry.IsEmpty()) && strEntry[0] == wxCONFIG_PATH_SEPARATOR )) strPath = wxCONFIG_PATH_SEPARATOR; if ( !strPath.IsEmpty() ) {