mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
1 changed files with 1 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue