]> git.droids-corp.org - protos/libecoli.git/commitdiff
fix config node comparison
authorOlivier Matz <zer0@droids-corp.org>
Wed, 9 Oct 2019 17:45:01 +0000 (19:45 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Wed, 9 Oct 2019 17:45:01 +0000 (19:45 +0200)
src/ecoli_config.c

index c8cd316678a40ba2b5d40e09ebadd6dc4f1b6b72..d98b21199aba97b37315483646baac478c5df0dc 100644 (file)
@@ -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: