diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-12 13:33:35 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-01-12 13:33:35 -0800 |
commit | 89069fdaa4fff2f8b703fef0be260eb4d4c2ed9b (patch) | |
tree | 89d1d66d214ae3f149c8e152b1fd7cd204395670 /builtin_complete.cpp | |
parent | 1130e4782de6378a7ad2cbb39cfb1626d7233fe8 (diff) |
Miscellaneous minor fixes based on cppcheck static analyzer
Diffstat (limited to 'builtin_complete.cpp')
-rw-r--r-- | builtin_complete.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin_complete.cpp b/builtin_complete.cpp index f3773f48..4eeec8be 100644 --- a/builtin_complete.cpp +++ b/builtin_complete.cpp @@ -290,7 +290,6 @@ static int builtin_complete(parser_t &parser, wchar_t **argv) int result_mode=SHARED; int remove = 0; int authoritative = -1; - int flags = COMPLETE_AUTO_SPACE; wcstring short_opt; wcstring_list_t gnu_opt, old_opt; @@ -600,6 +599,8 @@ static int builtin_complete(parser_t &parser, wchar_t **argv) } else { + int flags = COMPLETE_AUTO_SPACE; + if (remove) { builtin_complete_remove(cmd, |