summaryrefslogtreecommitdiffstats
path: root/newlib/libc/string/strrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/string/strrchr.c')
-rw-r--r--newlib/libc/string/strrchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/string/strrchr.c b/newlib/libc/string/strrchr.c
index 36ef3ef2f..4f903afe2 100644
--- a/newlib/libc/string/strrchr.c
+++ b/newlib/libc/string/strrchr.c
@@ -44,7 +44,7 @@ _DEFUN (strrchr, (s, i),
if (i)
{
- while (s=strchr(s, i))
+ while ((s=strchr(s, i)))
{
last = s;
s++;