From: Brian Paul Date: Thu, 31 Aug 2006 13:58:08 +0000 (+0000) Subject: check if ext->name is null before strcmp() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52e36cd8d9a727d786c2db14ae8291d48fad8e47;p=mesa.git check if ext->name is null before strcmp() --- 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; } }