diff options
author | 2012-07-28 17:49:46 -0700 | |
---|---|---|
committer | 2012-08-04 11:34:45 -0700 | |
commit | 2e1b3325c63cd6c43a10a08acfc54d1fb29a5c03 (patch) | |
tree | bf02e8d37f7ea5ffe28d293ad7bd3b690cc7dae6 /complete.cpp | |
parent | 1b8f1650dc9959ace0df2037f751682e73b5bb1d (diff) |
Warning cleanup
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/complete.cpp b/complete.cpp index 124b36bc..1050ef43 100644 --- a/complete.cpp +++ b/complete.cpp @@ -912,7 +912,6 @@ void completer_t::complete_cmd_desc( const wcstring &str ) ASSERT_IS_MAIN_THREAD(); const wchar_t *cmd_start; - int cmd_len; int skip; const wchar_t * const cmd = str.c_str(); @@ -923,14 +922,12 @@ void completer_t::complete_cmd_desc( const wcstring &str ) else cmd_start = cmd; - cmd_len = wcslen(cmd_start); - /* Using apropos with a single-character search term produces far to many results - require at least two characters if we don't know the location of the whatis-database. */ - if(cmd_len < 2 ) + if (wcslen(cmd_start) < 2) return; if( wildcard_has( cmd_start, 0 ) ) |