src/phcli.c: avoid zero length string comparaison in file_select_cli()
This commit is contained in:
parent
583077ba92
commit
70e2c40581
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue