Eliminate a few unbraced statements that crept into the code.

Also avoids some easily avoided multiple-returns.
This commit is contained in:
Gregory Maxwell
2015-09-21 17:21:35 +00:00
parent eeab823b70
commit 912f203fc5
10 changed files with 84 additions and 52 deletions

View File

@@ -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;