aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-01-09 05:19:43 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-01-09 05:19:43 +0100
commitf90cc1e5a2dc92cb1855186bce163acc25853ec6 (patch)
tree3d48263705a9a73f71807bdf09ebaf220db36626
parentbc7e83137ed2a14957e1b3feb5de658f8505ed57 (diff)
downloadliberty-f90cc1e5a2dc92cb1855186bce163acc25853ec6.tar.gz
liberty-f90cc1e5a2dc92cb1855186bce163acc25853ec6.tar.xz
liberty-f90cc1e5a2dc92cb1855186bce163acc25853ec6.zip
Copy user_data in config_item_set_from
So that the validation callback can make use of it. This is analogous to the change in schema application.
-rw-r--r--liberty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/liberty.c b/liberty.c
index fece828..0ccdb3b 100644
--- a/liberty.c
+++ b/liberty.c
@@ -4421,6 +4421,7 @@ config_item_set_from (struct config_item *self, struct config_item *source,
return true;
}
+ source->user_data = self->user_data;
if (!config_item_validate_by_schema (source, schema, e))
return false;