Menu

#40 index_dir.c:172: missing break ?

open
nobody
None
5
2014-01-12
2013-09-26
dcb
No

I just ran the static analysis tool "cppcheck" over
the source code of boa-0.94.14

It said many things, including

[index_dir.c:172] -> [index_dir.c:174]: (warning) Variable 'the_error' is reassigned a value before the old one has been used. 'break;' missing?

Source code is

case 4:
    the_error = "There was an error escaping a string.";
case 5:
    the_error = "Too many arguments were passed to the indexer.";
    break;
case 6:

Suggest add missing break.

Discussion


Log in to post a comment.