Fixed a crash doing completion of commands

This commit is contained in:
ridiculousfish 2012-02-02 14:11:20 -08:00
parent 884b4026dd
commit cdd5b1ed26
2 changed files with 2 additions and 3 deletions

View file

@ -913,7 +913,6 @@ static void complete_cmd_desc( const wchar_t *cmd, std::vector<completion_t> &co
{
const wchar_t *cmd_start;
int cmd_len;
wchar_t *esc;
int skip;
if( !cmd )

View file

@ -266,11 +266,11 @@ static int wildcard_complete_internal( const wchar_t *orig,
}
if( out_completion )
if(out_completion)
{
completion_allocate( out,
out_completion,
out_desc,
out_desc ? out_desc : L"",
flags );
}