mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:26:31 +01:00
monitor: fix clang warning - Declared variable-length array (VLA) has zero size
This commit is contained in:
parent
da7a2f91de
commit
17d4a5dd35
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ int monitor(const char *name)
|
|||
snd_ctl_t *ctls[MAX_CARDS];
|
||||
int ncards = 0;
|
||||
int show_cards;
|
||||
int i, err;
|
||||
int i, err = 0;
|
||||
|
||||
if (!name) {
|
||||
int card = -1;
|
||||
|
@ -117,7 +117,7 @@ int monitor(const char *name)
|
|||
show_cards = 0;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
for (;ncards > 0;) {
|
||||
struct pollfd fds[ncards];
|
||||
|
||||
for (i = 0; i < ncards; i++)
|
||||
|
|
Loading…
Reference in a new issue