After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 580901 - Uninitialized variable may be used in fpsdisplaysink.c
Uninitialized variable may be used in fpsdisplaysink.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal normal
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-30 15:27 UTC by Tristan Matthews
Modified: 2009-04-30 16:11 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
patch to apply to gst-plugins-bad/gst/debugutils/fpsdisplaysin.c (429 bytes, patch)
2009-04-30 15:29 UTC, Tristan Matthews
committed Details | Review

Description Tristan Matthews 2009-04-30 15:27:23 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:
Comment 1 Tristan Matthews 2009-04-30 15:29:22 UTC
Created attachment 133659 [details] [review]
patch to apply to gst-plugins-bad/gst/debugutils/fpsdisplaysin.c

Initializes target pad to NULL
Comment 2 Tim-Philipp Müller 2009-04-30 16:11:14 UTC
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.