Skip to content

Commit

Permalink
debug.c: fix breaking condtions
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jun 6, 2017
1 parent 267323c commit 95af329
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,9 @@ set_debug_option(const char *str, int len, void *arg)
if (!ov && retlen) {
ruby_w32_codepage[i] = (UINT)n;
}
if ((size_t)len <= retlen) break;
str += retlen;
len -= retlen;
if (*str != ':') break;
if (!len || *str != ':') break;
++str;
--len;
}
Expand Down

0 comments on commit 95af329

Please sign in to comment.