src/phcli.c: avoid zero length string comparaison in file_select_cli()

This commit is contained in:
Christophe Grenier 2017-04-11 10:04:11 +02:00
parent 583077ba92
commit 70e2c40581

View file

@ -64,6 +64,8 @@ static int file_select_cli(file_enable_t *files_enable, char**current_cmd)
keep_asking=0;
while(*current_cmd[0]==',')
(*current_cmd)++;
if(*current_cmd[0]=='\0')
return 0;
if(strncmp(*current_cmd,"everything",10)==0)
{
int enable_status;