hermes

HTTP GET/HEAD-only web server for static content.
git clone git://git.francescosaccone.com/hermes
Log | Files | Refs | README | LICENSE

commit 4a8c28687c2a19558fccd1f8f3a4af52ce4380b9
parent d98b7fa8525a32c30c674ba737a952689b52891e
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Mon, 31 Mar 2025 15:00:23 +0200

fix: return 1 after any of the argument checking conditions fails

Signed-off-by: Francesco Saccone <francesco@francescosaccone.com>

Diffstat:
Mhermes.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/hermes.c b/hermes.c @@ -38,6 +38,7 @@ main(int argc, char *argv[]) { argument[2] != '\0' || i + 1 >= argc /* Argument value exists */) { print_usage(program_name); + return 1; } switch (argument[1]) {