shithub: drawterm

Download patch

ref: 5876605b6b41632fcf67dbc7de11aa07a78a4382
parent: 11fecde6d0ba873506a6c89f12518b18e87e16a4
author: Sigrid <ftrvxmtrx@gmail.com>
date: Tue Dec 3 16:11:39 EST 2019

sndio: audiodevclose: don't crash if failed to init before

--- a/kern/devaudio-sndio.c	Mon Dec  2 19:12:00 2019
+++ b/kern/devaudio-sndio.c	Tue Dec  3 16:11:39 2019
@@ -40,7 +40,8 @@
 void
 audiodevclose(void)
 {
-	sio_close(hdl);
+	if (hdl != NULL)
+		sio_close(hdl);
 }
 
 void