mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:35:42 +01:00
Fixed OOPS
This commit is contained in:
parent
6c97531cf5
commit
158ceab298
1 changed files with 1 additions and 1 deletions
|
@ -937,7 +937,7 @@ static int cset(int argc, char *argv[], int roflag)
|
|||
|
||||
if (!roflag) {
|
||||
ptr = argv[1];
|
||||
for (idx = 0; idx < count && idx < 128 && *ptr; idx++) {
|
||||
for (idx = 0; idx < count && idx < 128 && ptr && *ptr; idx++) {
|
||||
switch (type) {
|
||||
case SND_CTL_ELEM_TYPE_BOOLEAN:
|
||||
tmp = 0;
|
||||
|
|
Loading…
Reference in a new issue