mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add fall through
Pointed out by Coverity Scan ``` ** CID 1487522: Control flow issues (MISSING_BREAK) /error.c: 1273 in exc_full_message() ```
This commit is contained in:
parent
fa239e0479
commit
036f26a4e2
1 changed files with 1 additions and 0 deletions
1
error.c
1
error.c
|
@ -1272,6 +1272,7 @@ exc_full_message(int argc, VALUE *argv, VALUE exc)
|
|||
switch (args[kw_highlight]) {
|
||||
default:
|
||||
rb_bool_expected(args[kw_highlight], "highlight");
|
||||
/* fall through */
|
||||
case Qundef: args[kw_highlight] = Qnil; break;
|
||||
case Qtrue: case Qfalse: case Qnil: break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue