diff options
author | Brian Paul <[email protected]> | 2006-08-31 13:58:08 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-08-31 13:58:08 +0000 |
commit | 52e36cd8d9a727d786c2db14ae8291d48fad8e47 (patch) | |
tree | 23ddce11cb08ad40b3ee4780e9308a1bc520df80 /src/mesa/drivers/x11/fakeglx.c | |
parent | 901f83f14efbef80d03485580484dbdbc8f1234b (diff) |
check if ext->name is null before strcmp()
Diffstat (limited to 'src/mesa/drivers/x11/fakeglx.c')
-rw-r--r-- | src/mesa/drivers/x11/fakeglx.c | 2 |
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; } } |