From: H.G. Muller Date: Tue, 26 Feb 2013 16:59:43 +0000 (+0100) Subject: Fix of argument error X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=dcb55122ea4e5c93aaf2c76b8deb421a4fba5dc6;p=xboard.git Fix of argument error Oops. Pevious patch for skipping unknown multi-line arguments was still buggy. --- diff --git a/args.h b/args.h index 76b2452..8c52303 100644 --- a/args.h +++ b/args.h @@ -922,6 +922,7 @@ ParseArgs(GetFunc get, void *cl) char endChar = (ch && ch != '\n' && (ch = get(cl)) == '{' ? '}' : '\n'); ExitArgError(_("Unrecognized argument %s"), argName, get != &FileGet); // [HGM] make unknown argument non-fatal while (ch != endChar && ch != NULLCHAR) ch = get(cl); // but skip rest of line it is on (or until closing '}' ) + if(ch == '}') ch = get(cl); continue; // so that when it is in a settings file, it is the only setting that will be purged from it } } else if (ch == '@') {