tests: rtp-payloading avoid -Wmaybe-uninitialized
authorVictor Toso <me@victortoso.com>
Thu, 17 Jan 2019 15:26:56 +0000 (16:26 +0100)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Fri, 18 Jan 2019 13:53:18 +0000 (13:53 +0000)
More false positives as both of them are initialized in the line
before they are used, wrapped with fail_unless() check.

tests/check/elements/rtp-payloading.c

index 872d951..d168011 100644 (file)
@@ -791,8 +791,8 @@ GST_START_TEST (rtp_h264depay_bytestream)
   GstBuffer *buf;
   GstSample *s;
   GstCaps *caps;
-  guint32 dw;
-  guint8 b;
+  guint32 dw = 0;
+  guint8 b = 0;
   guint off, left;
 
   s = rtp_h264depay_run ("byte-stream");