diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-10 15:39:37 +0100 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-10 15:39:37 +0100 |
commit | 95a6724e1dd5e8aae69fee30ecdae42b16c3f600 (patch) | |
tree | d693e491bda9501d0a2a63f3f689422fa38bed75 /src/main.c | |
parent | 8b6f56c76ee2a7c3fe73b2d552e4c2c0e423cf0b (diff) |
allow -r/--redirect 0
Disable redirections in this case.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |