From: Karsten Ballüder Date: Sun, 16 Aug 1998 11:28:39 +0000 (+0000) Subject: added one extra check for emptyness X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/82dc15db08bad628e9efbb853375c8a18720583f added one extra check for emptyness git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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() ) {