summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-05 01:11:20 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-05 02:16:43 +0200
commit9b41256ebf21a118b3a1a68b9bf2acfd75a7f5be (patch)
tree29fc32c3c8b8ec361e9922f6f0d38f452abc18ee /common.c
parent0ecd297c6fab28d5b0309084a72fd39033445da2 (diff)
downloadxK-9b41256ebf21a118b3a1a68b9bf2acfd75a7f5be.tar.gz
xK-9b41256ebf21a118b3a1a68b9bf2acfd75a7f5be.tar.xz
xK-9b41256ebf21a118b3a1a68b9bf2acfd75a7f5be.zip
degesch: create servers from configuration
This means that as of now, the only way of creating a server is to edit the configuration file by hand and add (at least) an empty object under the server's name.
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index 951055c..102cbd6 100644
--- a/common.c
+++ b/common.c
@@ -1131,7 +1131,6 @@ config_schema_accepts_type
&& config_item_type_is_string (type))
return true;
return !self->default_ && type == CONFIG_ITEM_NULL;
-
}
static bool
@@ -2008,6 +2007,7 @@ config_load (struct config *self, struct config_item_ *root)
subtree = config_item_object ();
str_map_set (&root->value.object, module->name, subtree);
}
- module->loader (subtree, module->user_data);
+ if (module->loader)
+ module->loader (subtree, module->user_data);
}
}