aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-03 19:18:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-03 19:26:39 +0200
commitbdad4dce4264e181c2b09195637d655f2164ccf4 (patch)
treea062085c647e1bfe91609eb75590464466f96917
parent134a627130a732f6315d323895365dd59fab95c5 (diff)
downloadxK-bdad4dce4264e181c2b09195637d655f2164ccf4.tar.gz
xK-bdad4dce4264e181c2b09195637d655f2164ccf4.tar.xz
xK-bdad4dce4264e181c2b09195637d655f2164ccf4.zip
config: fix config_item_set_from()
-rw-r--r--common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common.c b/common.c
index 1ec8cee..936b840 100644
--- a/common.c
+++ b/common.c
@@ -705,9 +705,9 @@ config_item_set_from (struct config_item_ *self, struct config_item_ *source,
return false;
// Make sure the string subtype fits the schema
- if (config_item_type_is_string (self->type)
- && config_item_type_is_string (source->type))
- source->type = self->type;
+ if (config_item_type_is_string (source->type)
+ && config_item_type_is_string (schema->type))
+ source->type = schema->type;
config_item_move (self, source);