diff options
-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); |