diff --git a/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c b/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c index bfb57e47e1..fdd1b89de0 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/video/video-frame.c @@ -39,7 +39,7 @@ video_frame_get_perf_category (void) static GstDebugCategory *cat = NULL; if (g_once_init_enter (&cat)) { - GstDebugCategory *c; + GstDebugCategory *c = NULL; GST_DEBUG_CATEGORY_GET (c, "GST_PERFORMANCE"); g_once_init_leave (&cat, c); diff --git a/subprojects/gstreamer/tests/check/gst/gstinfo.c b/subprojects/gstreamer/tests/check/gst/gstinfo.c index dba7d63cac..8615e4802a 100644 --- a/subprojects/gstreamer/tests/check/gst/gstinfo.c +++ b/subprojects/gstreamer/tests/check/gst/gstinfo.c @@ -516,8 +516,8 @@ GST_END_TEST; GST_START_TEST (info_set_and_reset_string) { - GstDebugCategory *states; - GstDebugCategory *caps; + GstDebugCategory *states = NULL; + GstDebugCategory *caps = NULL; GstDebugLevel cat; GST_DEBUG_CATEGORY_GET (states, "GST_STATES");