debug.c: fix breaking condtions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
267323cad5
commit
95af3295cc
3
debug.c
3
debug.c
@ -154,10 +154,9 @@ set_debug_option(const char *str, int len, void *arg)
|
|||||||
if (!ov && retlen) {
|
if (!ov && retlen) {
|
||||||
ruby_w32_codepage[i] = (UINT)n;
|
ruby_w32_codepage[i] = (UINT)n;
|
||||||
}
|
}
|
||||||
if ((size_t)len <= retlen) break;
|
|
||||||
str += retlen;
|
str += retlen;
|
||||||
len -= retlen;
|
len -= retlen;
|
||||||
if (*str != ':') break;
|
if (!len || *str != ':') break;
|
||||||
++str;
|
++str;
|
||||||
--len;
|
--len;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user