aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-11-26 09:53:26 -0800
committerChris Robinson <[email protected]>2017-11-26 09:53:26 -0800
commitd96be76875fd93da8ecb0d7a7096614042e3e02a (patch)
tree8a93f8fed170da1027700bddce7f85b49ebe218a /Alc
parent0e2e9e9a299a3901f6db402b721084e6105cffdf (diff)
Don't probe a NULL backend factory
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
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();
}