X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=args.h;h=8c52303991c66a20df0ee26a28d53e4a5b77d4cd;hb=dcb55122ea4e5c93aaf2c76b8deb421a4fba5dc6;hp=76b245214118b9842f465edf12a2f7759f5e1724;hpb=15f86d96d71e65cd016068907e75e9007033d90c;p=xboard.git 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 == '@') {