gl/context/wgl: Add missing NULL init

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>
This commit is contained in:
Seungha Yang 2021-07-03 19:36:06 +09:00 committed by GStreamer Marge Bot
parent 6389eef70d
commit aa34710bb6

View file

@ -493,7 +493,7 @@ load_opengl_dll_module (gpointer user_data)
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);