GNOME Bugzilla – Bug 580901
Uninitialized variable may be used in fpsdisplaysink.c
Last modified: 2009-04-30 16:11:14 UTC
Please describe the problem: building debugutils in gst-plugins-bad fails on the warning: cc1: warnings being treated as errors fpsdisplaysink.c: In function ‘fps_display_sink_change_state’: fpsdisplaysink.c:276: warning: ‘target_pad’ may be used uninitialized in this function fpsdisplaysink.c:276: note: ‘target_pad’ was declared here Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Created attachment 133659 [details] [review] patch to apply to gst-plugins-bad/gst/debugutils/fpsdisplaysin.c Initializes target pad to NULL
commit 8d4315ee5c74c5bb6bb6adf9ed5824101d9ccda1 Author: Tristan Matthews <le.businessman@gmail.com> Date: Thu Apr 30 17:08:52 2009 +0100 fpsdisplaysink: init variable to NULL to avoid compiler warning Fixes #580901.