From: David Lawrence Ramsey Date: Fri, 6 Jul 2007 13:38:20 +0000 (+0000) Subject: cosmetic fix X-Git-Tag: v2.1.0~99 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=84763ef4737adc8a6863c1a64bf5e4436913d5f1;p=nano.git cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4125 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/chars.c b/src/chars.c index 888c035f..2f3233a6 100644 --- a/src/chars.c +++ b/src/chars.c @@ -700,9 +700,9 @@ const char *revstrstr(const char *haystack, const char *needle, const return rev_start; for (; rev_start >= haystack; rev_start--) { - const char *r, *q; + const char *r = rev_start, *q = needle; - for (r = rev_start, q = needle; *q != '\0' && *r == *q; r++, q++) + for (; *q != '\0' && *r == *q; r++, q++) ; if (*q == '\0')