diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c index bd1cc9b61..8911af7e3 100644 --- a/daemons/lvmetad/lvmetad-core.c +++ b/daemons/lvmetad/lvmetad-core.c @@ -230,9 +230,9 @@ static int compare_value(struct dm_config_value *a, struct dm_config_value *b) return -1; switch (a->type) { - case DM_CFG_STRING: r = strcmp(a->v.str, b->v.str); - case DM_CFG_FLOAT: r = (a->v.f == b->v.f); - case DM_CFG_INT: r = (a->v.i == b->v.i); + case DM_CFG_STRING: r = strcmp(a->v.str, b->v.str); break; + case DM_CFG_FLOAT: r = (a->v.f == b->v.f); break; + case DM_CFG_INT: r = (a->v.i == b->v.i); break; case DM_CFG_EMPTY_ARRAY: return 0; }