Eliminate a few unbraced statements that crept into the code.
Also avoids some easily avoided multiple-returns.
This commit is contained in:
@@ -307,7 +307,9 @@ int have_flag(int argc, char** argv, char *flag) {
|
||||
return 1;
|
||||
}
|
||||
while (argv != NULL && argv != argm) {
|
||||
if (strcmp(*argv, flag) == 0) return 1;
|
||||
if (strcmp(*argv, flag) == 0) {
|
||||
return 1;
|
||||
}
|
||||
argv++;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user