kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 25ea10fea7e33a5b94e1dea9e135a5175c69841e
parent 73be741bfd2e4ed144923d5150e737d84573f823
Author: Joris Vink <joris@coders.se>
Date:   Wed, 10 Aug 2022 10:20:18 +0200

Be better.

Diffstat:
src/config.c | 3++-
tools/kore-serve/src/kore-serve.c | 2+-
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/config.c b/src/config.c @@ -1349,7 +1349,8 @@ configure_filemap(char *options) return (KORE_RESULT_ERROR); } - if (!kore_filemap_create(current_domain, argv[1], argv[0], argv[2])) { + if (kore_filemap_create(current_domain, + argv[1], argv[0], argv[2]) == NULL) { kore_log(LOG_ERR, "cannot create filemap for %s", argv[1]); return (KORE_RESULT_ERROR); } diff --git a/tools/kore-serve/src/kore-serve.c b/tools/kore-serve/src/kore-serve.c @@ -90,6 +90,6 @@ kore_parent_configure(int argc, char *argv[]) dom = kore_domain_new("*"); kore_domain_attach(dom, srv); - if (!kore_filemap_create(dom, rpath, "/", NULL)) + if (kore_filemap_create(dom, rpath, "/", NULL) == NULL) fatal("failed to create filemap for %s", rpath); }