Fix compile error when readline not available

This commit is contained in:
Eric Frias 2015-07-27 12:08:28 -04:00
parent e9eeb3300c
commit a31f0f503d

View file

@ -165,10 +165,12 @@ static char** cli_completion( const char * text , int start, int end)
char **matches;
matches = (char **)NULL;
#ifdef HAVE_READLINE
if (start == 0)
matches = rl_completion_matches ((char*)text, &my_generator);
else
rl_bind_key('\t',rl_abort);
#endif
return (matches);
}