check if ext->name is null before strcmp()
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 31 Aug 2006 13:58:08 +0000 (13:58 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 31 Aug 2006 13:58:08 +0000 (13:58 +0000)
src/mesa/drivers/x11/fakeglx.c

index 7f132eb049a97f6535fe02e2b5839aba38e29326..bc779a94a9e8e4564090d7a6c0e79d0a5946c716 100644 (file)
@@ -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;
       }
    }