summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/index.c')
-rw-r--r--lib/libc/string/index.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/string/index.c b/lib/libc/string/index.c
index fe523be..5d79f4f 100644
--- a/lib/libc/string/index.c
+++ b/lib/libc/string/index.c
@@ -52,7 +52,9 @@ index
#endif
(const char *p, int ch)
{
- char c = ch;
+ char c;
+
+ c = ch;
for (;; ++p) {
if (*p == c)
return ((char *)p);
OpenPOWER on IntegriCloud