Merge "main/config_options: Check for existance of internal object before derefing"

This commit is contained in:
Matt Jordan
2015-09-21 08:08:36 -05:00
committed by Gerrit Code Review

View File

@@ -837,6 +837,10 @@ int aco_set_defaults(struct aco_type *type, const char *category, void *obj)
struct aco_option *opt;
struct ao2_iterator iter;
if (!type->internal) {
return -1;
}
iter = ao2_iterator_init(type->internal->opts, 0);
while ((opt = ao2_iterator_next(&iter))) {