diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-03 19:18:13 +0200 |
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-05-03 19:26:39 +0200 |
| commit | bdad4dce4264e181c2b09195637d655f2164ccf4 (patch) | |
| tree | a062085c647e1bfe91609eb75590464466f96917 | |
| parent | 134a627130a732f6315d323895365dd59fab95c5 (diff) | |
| download | xK-bdad4dce4264e181c2b09195637d655f2164ccf4.tar.gz xK-bdad4dce4264e181c2b09195637d655f2164ccf4.tar.xz xK-bdad4dce4264e181c2b09195637d655f2164ccf4.zip | |
config: fix config_item_set_from()
| -rw-r--r-- | common.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |
