From: Olivier Matz Date: Wed, 9 Oct 2019 17:45:01 +0000 (+0200) Subject: fix config node comparison X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=249ab86786242560a3da422eb59b96479d47859a;p=protos%2Flibecoli.git fix config node comparison --- diff --git a/src/ecoli_config.c b/src/ecoli_config.c index c8cd316..d98b211 100644 --- a/src/ecoli_config.c +++ b/src/ecoli_config.c @@ -500,18 +500,23 @@ ec_config_cmp(const struct ec_config *value1, case EC_CONFIG_TYPE_BOOL: if (value1->boolean == value2->boolean) return 0; + break; case EC_CONFIG_TYPE_INT64: if (value1->i64 == value2->i64) return 0; + break; case EC_CONFIG_TYPE_UINT64: if (value1->u64 == value2->u64) return 0; + break; case EC_CONFIG_TYPE_STRING: if (!strcmp(value1->string, value2->string)) return 0; + break; case EC_CONFIG_TYPE_NODE: if (value1->node == value2->node) return 0; + break; case EC_CONFIG_TYPE_LIST: return ec_config_list_cmp(&value1->list, &value2->list); case EC_CONFIG_TYPE_DICT: