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 582013 - uninitialized var in mxfmux.c prevents gst-plugins-bad build (due to warning).
uninitialized var in mxfmux.c prevents gst-plugins-bad build (due to warning).
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-05-09 19:32 UTC by Tristan Matthews
Modified: 2009-05-10 08:43 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
proposed patch, initalizes "descriptors" (407 bytes, patch)
2009-05-09 19:33 UTC, Tristan Matthews
committed Details | Review

Description Tristan Matthews 2009-05-09 19:32:46 UTC
Please describe the problem:
Pointer variable should be initialized to NULL:

  CC    mxfmux.o
cc1: warnings being treated as errors
mxfmux.c: In function ‘gst_mxf_mux_create_metadata’:
mxfmux.c:935: error: ‘descriptors’ may be used uninitialized in this function
make[3]: *** [libgstmxf_la-mxfmux.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Tristan Matthews 2009-05-09 19:33:50 UTC
Created attachment 134318 [details] [review]
proposed patch, initalizes "descriptors"
Comment 2 Sebastian Dröge (slomo) 2009-05-10 08:43:02 UTC
commit 6451febd143e8d214718c6d0e1b2355f52806b50
Author: Tristan Matthews <le.businessman@gmail.com>
Date:   Sun May 10 10:40:36 2009 +0200

    mxfmux: Fix uninitialized variable compiler warning
    
    This will always be set to something but gcc didn't detect
    this. Fixes bug #582013.