summaryrefslogtreecommitdiffstats
path: root/src/phcli.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-04-11 10:04:11 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-04-11 10:04:11 +0200
commit70e2c40581ca4d797907be60e1934896f2fd86d8 (patch)
tree82d960d008469aaef11db99fd211560763e6a2ba /src/phcli.c
parent583077ba923e3e338c91c4c7ff3fed141a391a52 (diff)
src/phcli.c: avoid zero length string comparaison in file_select_cli()
Diffstat (limited to 'src/phcli.c')
-rw-r--r--src/phcli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/phcli.c b/src/phcli.c
index ebb106e..7440e43 100644
--- a/src/phcli.c
+++ b/src/phcli.c
@@ -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;