mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 05:32:14 +00:00
warning: logical 'or' of collectively exhaustive tests is always true
If using || in the while statement and if 'MAX_DRIVE_PATH_LENGTH' was exceeded the while loop would loop indefinitely.
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user