ref: 5876605b6b41632fcf67dbc7de11aa07a78a4382
parent: 11fecde6d0ba873506a6c89f12518b18e87e16a4
author: Sigrid <[email protected]>
date: Tue Dec 3 17:11:39 EST 2019
sndio: audiodevclose: don't crash if failed to init before
--- a/kern/devaudio-sndio.c
+++ b/kern/devaudio-sndio.c
@@ -40,7 +40,8 @@
void
audiodevclose(void)
{
- sio_close(hdl);
+ if (hdl != NULL)
+ sio_close(hdl);
}
void