summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 15afaf7..3d776b7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -70,7 +70,7 @@ int main(int argc, char *argv[])
if (optind < argc &&
argv[optind][0] != '-') {
max_redirect = atoi(argv[optind++]);
- if (max_redirect <= 0) {
+ if (max_redirect < 0) {
syslog(LOG_ERR, "Invalid number for redirections");
return EXIT_FAILURE;
}