config: fix config_item_set_from()
This commit is contained in:
parent
134a627130
commit
bdad4dce42
6
common.c
6
common.c
|
@ -705,9 +705,9 @@ config_item_set_from (struct config_item_ *self, struct config_item_ *source,
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Make sure the string subtype fits the schema
|
// Make sure the string subtype fits the schema
|
||||||
if (config_item_type_is_string (self->type)
|
if (config_item_type_is_string (source->type)
|
||||||
&& config_item_type_is_string (source->type))
|
&& config_item_type_is_string (schema->type))
|
||||||
source->type = self->type;
|
source->type = schema->type;
|
||||||
|
|
||||||
config_item_move (self, source);
|
config_item_move (self, source);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue