Commit ba4ff53b authored by Pierre-Eric Pelloux-Prayer's avatar Pierre-Eric Pelloux-Prayer
Browse files

glx: init __GLXvendorInfo to NULL

Since 01ba8a8d the dd variable isn't necessarly initialized,
so the compiler complains:

   warning: ‘dd’ may be used uninitialized in this function

Initialize dd to NULL to fix this.

Fixes: 01ba8a8d ("glx: Implement GLX_EXT_no_config_context")
parent 33f9b06b
Pipeline #310684 waiting for manual action with stages
in 16 seconds
......@@ -158,7 +158,7 @@ static GLXContext dispatch_CreateContextAttribsARB(Display *dpy,
const int *attrib_list)
__GLXvendorInfo *dd;
__GLXvendorInfo *dd = NULL;
GLXContext ret;
if (config) {
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