aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-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();
}