From 249ab86786242560a3da422eb59b96479d47859a Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Wed, 9 Oct 2019 19:45:01 +0200 Subject: [PATCH] fix config node comparison --- src/ecoli_config.c | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.39.5