From 0665eeb12d88eaba2c951045c39176510eb078fd Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 25 Feb 2008 06:21:09 +0000 Subject: [PATCH] Fix double adition of last line of autoexec.bat stuff Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3110 --- src/misc/setup.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/misc/setup.cpp b/src/misc/setup.cpp index 11cb5e79..8fa818b1 100644 --- a/src/misc/setup.cpp +++ b/src/misc/setup.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: setup.cpp,v 1.45 2008-02-18 20:25:21 qbix79 Exp $ */ +/* $Id: setup.cpp,v 1.46 2008-02-25 06:21:09 qbix79 Exp $ */ #include "dosbox.h" #include "cross.h" @@ -587,8 +587,7 @@ bool Config::ParseConfigFile(char const * const configfilename){ string gegevens; Section* currentsection = NULL; Section* testsec = NULL; - while (in) { - getline(in,gegevens); + while (getline(in,gegevens)) { /* strip leading/trailing whitespace */ trim(gegevens);