From: Sebastian Dröge Date: Mon, 14 Dec 2015 18:03:33 +0000 (+0100) Subject: rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes X-Git-Tag: 1.19.3~511^2~3161 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0c834df1b1e1ad7f1bfa5f5b326aacadb974c81;p=platform%2Fupstream%2Fgstreamer.git rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes --- diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index d3cb457..3e5add4 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -1124,11 +1124,14 @@ gst_rtsp_connection_connect (GstRTSPConnection * conn, GTimeVal * timeout) { GstRTSPResult result; GstRTSPMessage response; + + memset (&response, 0, sizeof (response)); gst_rtsp_message_init (&response); result = gst_rtsp_connection_connect_with_response (conn, timeout, &response); gst_rtsp_message_unset (&response); + return result; }