The value of uninitialized local variable is varying depending
on compiler and not guaranteed to be NULL initialized.
That results in pointing random address instead of expected function pointer.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1222>
gpointer
gst_gl_context_wgl_get_proc_address (GstGLAPI gl_api, const gchar * name)
{
- gpointer result;
+ gpointer result = NULL;
if (gl_api & (GST_GL_API_OPENGL | GST_GL_API_OPENGL3)) {
g_once (&module_opengl_dll_gonce, load_opengl_dll_module, NULL);