summaryrefslogtreecommitdiff
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/conf.c b/src/conf.c
index 75fa904..8d4fe5f 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -141,12 +141,17 @@ int conf_ctx_parse_ctx(struct conf_ctx *ctx, const struct conf_ctx *src)
if (s->flags & CONF_LOCKED)
d->flags |= CONF_LOCKED;
- if (!d->type->copy)
- continue;
+ if (d->type->copy) {
+ ret = d->type->copy(d, s);
+ if (ret)
+ return ret;
+ }
- ret = d->type->copy(d, s);
- if (ret)
- return ret;
+ if (d->copy) {
+ ret = d->copy(d, s);
+ if (ret)
+ return ret;
+ }
}
return 0;