rtsp: clear the entire builder structure

And use structure instead of variable with sizeof when
clearing the rtsp message structure, for clarity.
This commit is contained in:
Tim-Philipp Müller 2009-03-31 18:13:19 +01:00
parent dd9f077177
commit dfe96ce618
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}
/**

View file

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