summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-08-31 13:58:08 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-08-31 13:58:08 +0000
commit52e36cd8d9a727d786c2db14ae8291d48fad8e47 (patch)
tree23ddce11cb08ad40b3ee4780e9308a1bc520df80
parent901f83f14efbef80d03485580484dbdbc8f1234b (diff)
check if ext->name is null before strcmp()
-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;
}
}