From 5993ef0baa9096ca62d8bca0f17b95c5468ffde3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 26 Nov 2017 09:59:55 -0800 Subject: It's getFactory that may be NULL, not its return value... --- Alc/ALc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Alc') diff --git a/Alc/ALc.c b/Alc/ALc.c index 82da5143..4c6c9049 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -1290,15 +1290,16 @@ static void alc_deinit(void) ************************************************/ static void ProbeDevices(al_string *list, struct BackendInfo *backendinfo, enum DevProbe type) { - ALCbackendFactory *factory; - DO_INITCONFIG(); LockLists(); alstr_clear(list); - if((factory=backendinfo->getFactory()) != NULL) + if(backendinfo->getFactory) + { + ALCbackendFactory *factory = backendinfo->getFactory(); V(factory,probe)(type); + } UnlockLists(); } -- cgit v1.2.3