MINOR: init: verify that there is a single word on "-cc"
This adds the exact same restriction as commit 5546c8bdc ("MINOR:
cfgparse: Fail when encountering extra arguments in macro") but for
the "-cc" command line argument, for the sake of consistency.
diff --git a/src/haproxy.c b/src/haproxy.c
index b5c6a13..8a9f50c 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -1826,7 +1826,7 @@
exit(2);
}
- if (err & PARSE_ERR_TOOMANY) {
+ if ((err & PARSE_ERR_TOOMANY) || *args[1]) {
ha_alert("Error in condition: Too many words.\n");
exit(2);
}