mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:25:43 +01:00
alsactl: Fix oops (when parsing card argument)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
8ed6dcf98b
commit
0a8e8d581e
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
cardname = argc - optind > 1 ? argv[optind + 1] : NULL;
|
||||
for (tmp = devfiles; cardname != NULL && tmp != NULL; tmp++) {
|
||||
for (tmp = devfiles; cardname != NULL && *tmp != NULL; tmp++) {
|
||||
int len = strlen(*tmp);
|
||||
if (!strncmp(cardname, *tmp, len)) {
|
||||
long l = strtol(cardname + len, NULL, 0);
|
||||
|
|
Loading…
Reference in a new issue