From 487c27592671134d9e29e1b4516784cb67103050 Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 22 Jan 2006 06:44:23 +1000 Subject: [PATCH] Bugfix for command completion descriptions, potential crash on strange output from apropos darcs-hash:20060121204423-ac50b-b4583611b49f9ec54de7b8529b2652ce93d03980.gz --- complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete.c b/complete.c index d3fa45299..42d34ca2c 100644 --- a/complete.c +++ b/complete.c @@ -1144,7 +1144,7 @@ static void complete_cmd_desc( const wchar_t *cmd, array_list_t *comp ) val_begin++; } - if( !val_begin ) + if( !*val_begin ) { continue; }