GNOME Bugzilla – Bug 582013
uninitialized var in mxfmux.c prevents gst-plugins-bad build (due to warning).
Last modified: 2009-05-10 08:43:02 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:
Created attachment 134318 [details] [review] proposed patch, initalizes "descriptors"
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.