volume: avoid NULL dereference in onval() on sndio device switch
This commit is contained in:
parent
8723e8b8c6
commit
6fa36bad9f
1 changed files with 2 additions and 0 deletions
|
|
@ -89,6 +89,8 @@
|
||||||
if (c->addr == addr)
|
if (c->addr == addr)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (c == NULL)
|
||||||
|
return;
|
||||||
c->val = val;
|
c->val = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue