Merge branch 'fix-options' of https://github.com/argrath/NetHack into NetHack-3.7
This commit is contained in:
@@ -630,12 +630,10 @@ parseoptions(
|
||||
if (pfx_match && optresult == optn_err) {
|
||||
char pfxbuf[BUFSZ], *pfxp;
|
||||
|
||||
if (opts) {
|
||||
Snprintf(pfxbuf, sizeof pfxbuf, "%s", opts);
|
||||
if ((pfxp = strchr(pfxbuf, ':')) != 0)
|
||||
*pfxp = '\0';
|
||||
config_error_add("bad option suffix variation '%s'", pfxbuf);
|
||||
}
|
||||
Snprintf(pfxbuf, sizeof pfxbuf, "%s", opts);
|
||||
if ((pfxp = strchr(pfxbuf, ':')) != 0)
|
||||
*pfxp = '\0';
|
||||
config_error_add("bad option suffix variation '%s'", pfxbuf);
|
||||
return FALSE;
|
||||
}
|
||||
if (got_match && optresult == optn_err)
|
||||
|
||||
Reference in New Issue
Block a user