Skip to content

Commit

Permalink
[cppcheck] mrb_str_rindex() remove unnecessary len update by chars2by…
Browse files Browse the repository at this point in the history
…tes()
  • Loading branch information
matz committed Feb 5, 2016
1 parent af4dd3d commit 62b06ab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -1870,7 +1870,6 @@ mrb_str_rindex(mrb_state *mrb, mrb_value str)
sub = mrb_nil_value();
}
pos = chars2bytes(str, 0, pos);
len = chars2bytes(str, pos, len);
mrb_regexp_check(mrb, sub);

switch (mrb_type(sub)) {
Expand Down

0 comments on commit 62b06ab

Please sign in to comment.