diff options
author | Chris Robinson <[email protected]> | 2017-11-26 09:53:26 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-11-26 09:53:26 -0800 |
commit | d96be76875fd93da8ecb0d7a7096614042e3e02a (patch) | |
tree | 8a93f8fed170da1027700bddce7f85b49ebe218a /Alc | |
parent | 0e2e9e9a299a3901f6db402b721084e6105cffdf (diff) |
Don't probe a NULL backend factory
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); } |