volume: avoid NULL dereference in onval() on sndio device switch
This commit is contained in:
parent
8723e8b8c6
commit
6fa36bad9f
@ -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…
x
Reference in New Issue
Block a user