aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
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);
}
}