From 59721b003c456f012205a69d2be5727dca492647 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 12 Mar 2006 21:26:22 +0000 Subject: [PATCH] small bugfix Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2543 --- src/misc/setup.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/misc/setup.cpp b/src/misc/setup.cpp index f8351253..eda8d57b 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.33 2006-02-09 11:47:57 qbix79 Exp $ */ +/* $Id: setup.cpp,v 1.34 2006-03-12 21:26:22 qbix79 Exp $ */ #include "dosbox.h" #include "cross.h" @@ -148,7 +148,8 @@ int Section_prop::Get_hex(const char* _propname){ void Section_prop::HandleInputline(char *gegevens){ char * rest=strrchr(gegevens,'='); - *rest=0; + if(!rest) return; + *rest = 0; gegevens=trim(gegevens); for(it tel=properties.begin();tel!=properties.end();tel++){ if(!strcasecmp((*tel)->propname.c_str(),gegevens)){