summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/factor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/factor.c b/src/factor.c
index f1e565553..6578a7782 100644
--- a/src/factor.c
+++ b/src/factor.c
@@ -211,10 +211,10 @@ main (int argc, char **argv)
else
{
int i;
+ ok = true;
for (i = optind; i < argc; i++)
if (! print_factors (argv[i]))
- usage (EXIT_FAILURE);
- ok = true;
+ ok = false;
}
exit (ok ? EXIT_SUCCESS : EXIT_FAILURE);