--- main.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 5f1c6d9..943d146 100644 --- a/main.c +++ b/main.c _AT_@ -172,9 +172,11 @@ main(int argc, char *argv[]) } if (!(s.vhost[s.vhost_len - 1].chost = strtok(tok, " ")) || !(s.vhost[s.vhost_len - 1].regex = strtok(NULL, " ")) || - !(s.vhost[s.vhost_len - 1].dir = strtok(NULL, " ")) || - !(s.vhost[s.vhost_len - 1].prefix = strtok(NULL, " ")) || - strtok(NULL, "")) { + !(s.vhost[s.vhost_len - 1].dir = strtok(NULL, " "))) { + usage(); + } + s.vhost[s.vhost_len - 1].prefix = strtok(NULL, " "); + if (strtok(NULL, "")) { usage(); } break; -- 2.10.0Received on Mon Apr 02 2018 - 02:55:00 CEST
This archive was generated by hypermail 2.3.0 : Mon Apr 02 2018 - 03:00:32 CEST