diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-26 01:21:10 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-03-26 01:21:10 -0700 |
commit | 0bc644abf06d1cf903ed7bf59302894f80d18971 (patch) | |
tree | da229cd4505d34800af22e10c8f61d380d6a88b3 /builtin.cpp | |
parent | 31b7d076b7bff8d7bb81e6a1fff58755b7baa10b (diff) |
Fix lots of bugs related to the static analyzer
Improved how screen.cpp interacts with output_set_writer()
Diffstat (limited to 'builtin.cpp')
-rw-r--r-- | builtin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.cpp b/builtin.cpp index eea5ae79..7e96a460 100644 --- a/builtin.cpp +++ b/builtin.cpp @@ -2723,6 +2723,7 @@ static int builtin_contains( parser_t &parser, wchar_t ** argv ) switch( opt ) { case 0: + assert(opt_index >= 0 && opt_index < sizeof long_options / sizeof *long_options); if(long_options[opt_index].flag != 0) break; append_format(stderr_buffer, |