summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/rindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/rindex.c')
-rw-r--r--lib/libc/string/rindex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/string/rindex.c b/lib/libc/string/rindex.c
index 9deeb1f..641c00f 100644
--- a/lib/libc/string/rindex.c
+++ b/lib/libc/string/rindex.c
@@ -53,8 +53,9 @@ rindex
(const char *p, int ch)
{
char *save;
- char c = ch;
+ char c;
+ c = ch;
for (save = NULL;; ++p) {
if (*p == c)
save = (char *)p;
OpenPOWER on IntegriCloud