summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 7f132eb049a..bc779a94a9e 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -961,7 +961,7 @@ lookup_extension(Display *dpy, const char *extName)
{
_XExtension *ext;
for (ext = dpy->ext_procs; ext; ext = ext->next) {
- if (strcmp(ext->name, extName) == 0) {
+ if (ext->name && strcmp(ext->name, extName) == 0) {
return ext;
}
}