From c5bfd1aa030085abb89a8f13ecc4d36bb0227d1d Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 8 Mar 2011 09:36:48 +0000 Subject: Added safety agains mhmakeconf value ending in backspace --- tools/mhmake/src/util.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/mhmake/src/util.cpp') diff --git a/tools/mhmake/src/util.cpp b/tools/mhmake/src/util.cpp index 8b7d2b164..2ff5a03f3 100644 --- a/tools/mhmake/src/util.cpp +++ b/tools/mhmake/src/util.cpp @@ -341,9 +341,8 @@ loadedmakefile::loadedmakefile_statics::loadedmakefile_statics() const char *pEnv=getenv(MHMAKECONF); if (pEnv) { - string Env(QuoteFileName(pEnv)); - m_GlobalCommandLineVars[MHMAKECONF]=Env; - m_MhMakeConf=GetAbsFileInfo(Env); + m_MhMakeConf=GetAbsFileInfo(pEnv); + m_GlobalCommandLineVars[MHMAKECONF]=QuoteFileName(m_MhMakeConf->GetFullFileName()); // Get the revision of the working copy // We do it with the svn info command -- cgit v1.2.3