diff options
author | Chris Robinson <[email protected]> | 2017-11-26 09:59:55 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-11-26 09:59:55 -0800 |
commit | 5993ef0baa9096ca62d8bca0f17b95c5468ffde3 (patch) | |
tree | 110865d55b50ccc6e90a74dafff610ffd9f137f6 /Alc | |
parent | d96be76875fd93da8ecb0d7a7096614042e3e02a (diff) |
It's getFactory that may be NULL, not its return value...
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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(); } |