From: Vadim Zeitlin Date: Mon, 22 Jun 1998 21:58:31 +0000 (+0000) Subject: bug in SplitPath() corrected - now ".." handled correctly X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/937d4f4d3162ca4e66a8707442763e7172749445 bug in SplitPath() corrected - now ".." handled correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/config.cpp b/src/common/config.cpp index 2afb70d05e..9eae6aafa1 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -243,6 +243,8 @@ void SplitPath(wxArrayString& aParts, const char *sz) wxLogWarning("'%s' has extra '..', ignored.", sz); else aParts.Remove(aParts.Count() - 1); + + strCurrent.Empty(); } else if ( !strCurrent.IsEmpty() ) { aParts.Add(strCurrent);