Be better.

This commit is contained in:
Joris Vink 2022-08-10 10:20:18 +02:00
parent 73be741bfd
commit 25ea10fea7
2 changed files with 3 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}