config: fix config_item_set_from()

This commit is contained in:
Přemysl Eric Janouch 2015-05-03 19:18:13 +02:00
parent 134a627130
commit bdad4dce42

View File

@ -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);