rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes

This commit is contained in:
Sebastian Dröge 2015-12-14 19:03:33 +01:00
parent 5ac65d9e3a
commit b0c834df1b

View file

@ -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;
}