From 84763ef4737adc8a6863c1a64bf5e4436913d5f1 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Fri, 6 Jul 2007 13:38:20 +0000 Subject: [PATCH] cosmetic fix git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4125 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/chars.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') -- 2.39.5