hermes

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

commit 6b78b5e89fb356bd75b27e07fe5f0641a0ee7b30
parent 7850e76ad2ac31e95aa4e7a8a8e5c8f0bdc01fae
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Mon, 31 Mar 2025 14:32:40 +0200

refactor: make if statement more explicit

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

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

diff --git a/hermes.c b/hermes.c @@ -42,8 +42,7 @@ main(int argc, char *argv[]) { print_usage(program_name); } - /* if argument[2] is a non-null character */ - if (argument[2]) { + if (argument[2] != '\0') { print_usage(program_name); }