From 937d4f4d3162ca4e66a8707442763e7172749445 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Jun 1998 21:58:31 +0000 Subject: [PATCH] bug in SplitPath() corrected - now ".." handled correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/config.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.47.2