diff --git a/src/control/control.c b/src/control/control.c index d515cffd..0cb01057 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -2483,7 +2483,7 @@ int snd_ctl_elem_info_get_dimension(const snd_ctl_elem_info_t *obj, unsigned int #endif { assert(obj); - if (idx >= 3) + if (idx > 3) return 0; return obj->dimen.d[idx]; }