mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Be better.
This commit is contained in:
parent
73be741bfd
commit
25ea10fea7
@ -1349,7 +1349,8 @@ configure_filemap(char *options)
|
|||||||
return (KORE_RESULT_ERROR);
|
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]);
|
kore_log(LOG_ERR, "cannot create filemap for %s", argv[1]);
|
||||||
return (KORE_RESULT_ERROR);
|
return (KORE_RESULT_ERROR);
|
||||||
}
|
}
|
||||||
|
@ -90,6 +90,6 @@ kore_parent_configure(int argc, char *argv[])
|
|||||||
dom = kore_domain_new("*");
|
dom = kore_domain_new("*");
|
||||||
kore_domain_attach(dom, srv);
|
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);
|
fatal("failed to create filemap for %s", rpath);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user