Commit 19420aac authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add missing brackets around an if statement block in parse_rcfile() so

that parsing the numeric argument after "tabsize" works properly again


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1909 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
CVS code - CVS code -
- rcfile.c:
parse_rcfile()
- Add missing brackets around an if statement block so that
parsing the numeric argument after "tabsize" works properly
again. (DLR, found by Mike Frysinger)
GNU nano 1.3.4 - 2004.08.17 GNU nano 1.3.4 - 2004.08.17
- General: - General:
......
...@@ -611,10 +611,11 @@ void parse_rcfile(FILE *rcstream) ...@@ -611,10 +611,11 @@ void parse_rcfile(FILE *rcstream)
else else
#endif #endif
if (strcasecmp(rcopts[i].name, "tabsize") == 0) { if (strcasecmp(rcopts[i].name, "tabsize") == 0) {
if (!parse_num(option, &tabsize) || tabsize <= 0) if (!parse_num(option, &tabsize) || tabsize <= 0) {
rcfile_error(N_("Requested tab size %s invalid"), option); rcfile_error(N_("Requested tab size %s invalid"), option);
tabsize = -1; tabsize = -1;
} }
}
} else } else
SET(rcopts[i].flag); SET(rcopts[i].flag);
#ifdef DEBUG #ifdef DEBUG
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment