Commit dfe96ce6 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

rtsp: clear the entire builder structure

And use structure instead of variable with sizeof when
clearing the rtsp message structure, for clarity.
parent dd9f0771
......@@ -239,7 +239,7 @@ static void
build_reset (GstRTSPBuilder * builder)
{
g_free (builder->body_data);
memset (builder, 0, sizeof (builder));
memset (builder, 0, sizeof (GstRTSPBuilder));
}
/**
......
......@@ -463,7 +463,7 @@ gst_rtsp_message_unset (GstRTSPMessage * msg)
}
g_free (msg->body);
memset (msg, 0, sizeof *msg);
memset (msg, 0, sizeof (GstRTSPMessage));
return GST_RTSP_OK;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment