From: David Lawrence Ramsey Date: Wed, 18 Aug 2004 16:14:18 +0000 (+0000) Subject: add missing brackets around an if statement block in parse_rcfile() so X-Git-Tag: v1.3.5~211 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=19420aac9dc53af2a4eaa650469c0dac0a8972dd;p=nano.git 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 --- diff --git a/ChangeLog b/ChangeLog index 0a0339f3..bcfa2207 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ 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 - General: diff --git a/src/rcfile.c b/src/rcfile.c index 20b9de25..1f5d2adb 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -611,9 +611,10 @@ void parse_rcfile(FILE *rcstream) else #endif 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); tabsize = -1; + } } } else SET(rcopts[i].flag);