Skip to content

Commit

Permalink
attempt to fix config file error when using an in-code config
Browse files Browse the repository at this point in the history
  • Loading branch information
HalosGhost committed Oct 18, 2018
1 parent 8fe3480 commit 126fae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/lwan.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ static bool setup_from_config(struct lwan *lwan, const char *path)

static void try_setup_from_config(struct lwan *l, const struct lwan_config *config)
{
if (!setup_from_config(l, config->config_file_path)) {
if (config->config_file_path) {
if (config->config_file_path != "") {
if (!setup_from_config(l, config->config_file_path)) {
lwan_status_critical("Could not read config file: %s",
config->config_file_path);
}
Expand Down

0 comments on commit 126fae9

Please sign in to comment.