From dfe96ce6188693fe3bef16407bb0b87b85afbbe9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 31 Mar 2009 18:13:19 +0100 Subject: [PATCH] rtsp: clear the entire builder structure And use structure instead of variable with sizeof when clearing the rtsp message structure, for clarity. --- gst-libs/gst/rtsp/gstrtspconnection.c | 2 +- gst-libs/gst/rtsp/gstrtspmessage.c | 2 +- 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; } -- 2.34.1