rtspconnection: Fix uninitialized variable warning when compiling with pre-2.59.1 GLib

gstrtspconnection.c: In function ‘writev_bytes’:
gstrtspconnection.c:1348:10: error: ‘res’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   return res;
          ^
This commit is contained in:
Sebastian Dröge 2019-01-30 14:32:50 +02:00 committed by Sebastian Dröge
parent a86fc3da46
commit 05f0fe79a2

View file

@ -1331,7 +1331,7 @@ writev_bytes (GOutputStream * stream, GOutputVector * vectors, gint n_vectors,
gsize _bytes_written = 0;
guint written;
gint i;
GstRTSPResult res;
GstRTSPResult res = GST_RTSP_OK;
for (i = 0; i < n_vectors; i++) {
written = 0;