Merge pull request #140 from martijnvanbrummelen/PartialVolume-patch-1

warning: logical 'or' of collectively exhaustive tests is always true
This commit is contained in:
PartialVolume
2019-11-30 17:20:25 +00:00
committed by GitHub

View File

@@ -296,7 +296,7 @@ int nwipe_options_parse( int argc, char** argv )
{ /* This section deals with file names that exceed
MAX_DRIVE_PATH_LENGTH */
nwipe_options.exclude[idx_drive][idx_drive_chr] = 0;
while( optarg[idx_optarg] != 0 || optarg[idx_optarg] != ',' )
while( optarg[idx_optarg] != 0 && optarg[idx_optarg] != ',' )
{
idx_optarg++;
}