From d96be76875fd93da8ecb0d7a7096614042e3e02a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 26 Nov 2017 09:53:26 -0800 Subject: Don't probe a NULL backend factory --- Alc/ALc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index d07eef29..82da5143 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1297,8 +1297,8 @@ static void ProbeDevices(al_string *list, struct BackendInfo *backendinfo, enum LockLists(); alstr_clear(list); - factory = backendinfo->getFactory(); - V(factory,probe)(type); + if((factory=backendinfo->getFactory()) != NULL) + V(factory,probe)(type); UnlockLists(); } -- cgit v1.2.3