From 03cb4a6747a40070fa8fae0ba343e423a43f10e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 10 Apr 2022 19:21:40 +0200 Subject: [PATCH] :art: Abort on unknown driver, as per jackojc suggestion --- src/gwion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gwion.c b/src/gwion.c index 483d8bb8..b45ba76f 100644 --- a/src/gwion.c +++ b/src/gwion.c @@ -20,7 +20,7 @@ ANN m_bool gwion_audio(const Gwion gwion) { Driver *const di = gwion->vm->bbq; - if (di->si->arg) driver_ini(gwion); + if (di->si->arg) CHECK_BB(driver_ini(gwion)); di->func(di->driver); CHECK_BB(di->driver->ini(gwion->vm, di)); driver_alloc(di); -- 2.43.0