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 582218 - Uninitialized variable may be used in gstavidemux.c
Uninitialized variable may be used in gstavidemux.c
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal normal
: 0.10.15
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-05-11 18:40 UTC by Tristan Matthews
Modified: 2009-05-11 19:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
initializes var "n" to 0 in gst_avi_demux_handle_src_event in file gstavidemux.c (432 bytes, patch)
2009-05-11 18:42 UTC, Tristan Matthews
committed Details | Review

Description Tristan Matthews 2009-05-11 18:40:39 UTC
Please describe the problem:
Build fails on warning:

Making all in avi
  CC    gstavidemux.o
  CC    gstavisubtitle.o
cc1: warnings being treated as errors
gstavidemux.c: In function ‘gst_avi_demux_handle_src_event’:
gstavidemux.c:354: warning: ‘n’ may be used uninitialized in this function
gstavidemux.c:354: note: ‘n’ was declared here
make[3]: *** [libgstavi_la-gstavidemux.lo] Error 1


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Tristan Matthews 2009-05-11 18:42:17 UTC
Created attachment 134430 [details] [review]
initializes var "n" to 0 in gst_avi_demux_handle_src_event in file gstavidemux.c
Comment 2 Wim Taymans 2009-05-11 19:03:16 UTC
commit 39da7e523d9a5bc094edda7c32f0918800f4a5a5
Author: Tristan Matthews <le.businessman at gmail.com>
Date:   Mon May 11 21:02:27 2009 +0200

    avidemux: initialize variable to 0
    
    Fixes #582218.