Warning cleanup

This commit is contained in:
ridiculousfish
2012-07-28 17:49:46 -07:00
parent 1b8f1650dc
commit 2e1b3325c6
26 changed files with 94 additions and 126 deletions

View File

@@ -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 ) )