summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/x11')
-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 7f132eb049..bc779a94a9 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;
}
}