[230/906] explicit check g_getenv return value to be not NULL

This commit is contained in:
Filippo Argiolas 2008-09-21 16:40:38 +02:00 committed by Tim-Philipp Müller
parent ec8aa615e5
commit 6c04333f11

View file

@ -245,7 +245,7 @@ gst_gl_shader_init (GstGLShader * self)
priv->compiled = FALSE;
priv->active = FALSE; // unused at the moment
if (g_getenv ("GST_GL_SHADER_DEBUG"))
if (g_getenv ("GST_GL_SHADER_DEBUG") != NULL)
_gst_gl_shader_debug = TRUE;
g_log_set_handler ("GstGLShader", G_LOG_LEVEL_DEBUG,