summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2022-02-10 15:39:37 +0100
committertiptorrent development team <tiptorrent@soleta.eu>2022-02-10 15:39:37 +0100
commit95a6724e1dd5e8aae69fee30ecdae42b16c3f600 (patch)
treed693e491bda9501d0a2a63f3f689422fa38bed75
parent8b6f56c76ee2a7c3fe73b2d552e4c2c0e423cf0b (diff)
allow -r/--redirect 0
Disable redirections in this case.
-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;
}