From: David Lawrence Ramsey Date: Fri, 4 Mar 2005 15:09:55 +0000 (+0000) Subject: cosmetic fixes X-Git-Tag: v1.3.6~68 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9adace8c7690c6c4c5384d2fa2dd2087cc20ad36;p=nano.git cosmetic fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2335 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/rcfile.c b/src/rcfile.c index 16999c20..467fa0ef 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -253,7 +253,8 @@ int nregcomp(regex_t *preg, const char *regex, int eflags) rcfile_error(N_("Bad regex \"%s\": %s"), regex, str); free(str); } - return rc != 0; + + return (rc != 0); } void parse_syntax(char *ptr) @@ -653,6 +654,7 @@ void do_rcfile(void) #ifdef SYSCONFDIR assert(sizeof(SYSCONFDIR) == strlen(SYSCONFDIR) + 1); + nanorc = SYSCONFDIR "/nanorc"; /* Try to open system nanorc */ rcstream = fopen(nanorc, "r"); @@ -697,6 +699,7 @@ void do_rcfile(void) } free(nanorcf); } + lineno = 0; #ifdef ENABLE_COLOR