Commit ff5d0145 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

dlopen path can be NULL

parent 030a7248
......@@ -297,7 +297,7 @@ int (*XSetIOErrorHandler (int (*handler) (Display *))) (Display *)
void *dlopen (const char *path, int flag)
{
if (strstr (path, "/gui_platform/libkde.so"))
if (path && strstr (path, "/gui_platform/libkde.so"))
return NULL; /* Oh no, not that one! */
return CALL(dlopen, path, flag);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment