From: Stephen Seo Date: Sun, 10 Nov 2024 11:45:37 +0000 (+0900) Subject: Fix typo in impl. of `--generate-dir=` X-Git-Tag: 1.2~6 X-Git-Url: https://git.seodisparate.com/stephenseo/img/favicon.ico?a=commitdiff_plain;h=68551de565b3b1689f41421303bdeca5eb934b97;p=c_simple_http Fix typo in impl. of `--generate-dir=` --- diff --git a/src/main.c b/src/main.c index cf1ce8f..9a8f63a 100644 --- a/src/main.c +++ b/src/main.c @@ -356,7 +356,7 @@ int generate_paths_fn(const void *key, } // Append the path. - if (strcmp("path", "/") != 0) { + if (strcmp(path, "/") != 0) { // Is not root. uint32_t idx = 0; while (idx <= path_len && path[idx] == '/') {