]> git.wh0rd.org Git - nano.git/commitdiff
add missing brackets around an if statement block in parse_rcfile() so
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 18 Aug 2004 16:14:18 +0000 (16:14 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 18 Aug 2004 16:14:18 +0000 (16:14 +0000)
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

ChangeLog
src/rcfile.c

index 0a0339f32fa74176e824a0ed00249c6e40a1dc53..bcfa220721db7733ca01456938f498b46fa89901 100644 (file)
--- 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:
index 20b9de255bec336ddda464b722ac4416b9590400..1f5d2adb1d5f5caf0c58659f865a99ce1775e28b 100644 (file)
@@ -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);