summaryrefslogtreecommitdiffstats
path: root/src/testdisk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdisk.c')
-rw-r--r--src/testdisk.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/testdisk.c b/src/testdisk.c
index bcaffe3..891833a 100644
--- a/src/testdisk.c
+++ b/src/testdisk.c
@@ -471,11 +471,9 @@ int main( int argc, char **argv )
int command='Q';
if(cmd_run!=NULL)
{
- while(cmd_run[0]==',')
- (cmd_run)++;
- if(strncmp(cmd_run,"list",4)==0)
+ skip_comma_in_command(&cmd_run);
+ if(check_command(&cmd_run,"list",4)==0)
{
- (cmd_run)+=4;
command='L';
}
else if(cmd_run[0]!='\0')