summaryrefslogtreecommitdiffstats
path: root/lib_generic/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_generic/string.c')
-rw-r--r--lib_generic/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_generic/string.c b/lib_generic/string.c
index dea4d69a9b..0e99d1b2b5 100644
--- a/lib_generic/string.c
+++ b/lib_generic/string.c
@@ -380,7 +380,7 @@ char *strswab(const char *s)
return (NULL);
}
- for (p=(char *)s, q=p+1; (*p != '\0') && (*p != '\0'); p+=2, q+=2) {
+ for (p=(char *)s, q=p+1; (*p != '\0') && (*q != '\0'); p+=2, q+=2) {
char tmp;
tmp = *p;
OpenPOWER on IntegriCloud