summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-08 05:34:58 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-08 05:34:58 (GMT)
commita74d08b957b9896e69bde1c9f571fdc5022fbdfb (patch)
tree2e7230341b9a0b2590a162c6141b14f402f3c8da /st.c
parent7b9dd379bfe4d597acfe4c26365feff61dabd488 (diff)
svn merge -r 65625:65623 .
Was breaking make test-all git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/st.c b/st.c
index 77d998f..ee3dbb1 100644
--- a/st.c
+++ b/st.c
@@ -2036,9 +2036,8 @@ int
st_locale_insensitive_strncasecmp(const char *s1, const char *s2, size_t n)
{
char c1, c2;
- size_t i;
- for (i = 0; i < n; i++) {
+ while (n--) {
c1 = *s1++;
c2 = *s2++;
if (c1 == '\0' || c2 == '\0') {