summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-31 18:13:19 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-31 18:30:48 +0100
commitdfe96ce6188693fe3bef16407bb0b87b85afbbe9 (patch)
tree4a95a6b290b690beace1ab1734e231a60e886926
parentdd9f077177a904a219ee8286c301c0c645fd73e4 (diff)
rtsp: clear the entire builder structure
And use structure instead of variable with sizeof when clearing the rtsp message structure, for clarity.
-rw-r--r--gst-libs/gst/rtsp/gstrtspconnection.c2
-rw-r--r--gst-libs/gst/rtsp/gstrtspmessage.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c
index c9bcea076..4ae4a80e2 100644
--- a/gst-libs/gst/rtsp/gstrtspconnection.c
+++ b/gst-libs/gst/rtsp/gstrtspconnection.c
@@ -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));
}
/**
diff --git a/gst-libs/gst/rtsp/gstrtspmessage.c b/gst-libs/gst/rtsp/gstrtspmessage.c
index b4d2e96f0..a6aa92113 100644
--- a/gst-libs/gst/rtsp/gstrtspmessage.c
+++ b/gst-libs/gst/rtsp/gstrtspmessage.c
@@ -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;
}