mirror of git://git.sv.gnu.org/nano.git
cosmetic fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4125 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
08077ec59a
commit
84763ef473
|
@ -700,9 +700,9 @@ const char *revstrstr(const char *haystack, const char *needle, const
|
||||||
return rev_start;
|
return rev_start;
|
||||||
|
|
||||||
for (; rev_start >= haystack; 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')
|
if (*q == '\0')
|
||||||
|
|
Loading…
Reference in New Issue