From: Tim-Philipp Müller Date: Tue, 31 Mar 2009 17:13:19 +0000 (+0100) Subject: rtsp: clear the entire builder structure X-Git-Tag: 1.19.3~511^2~9800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfe96ce6188693fe3bef16407bb0b87b85afbbe9;p=platform%2Fupstream%2Fgstreamer.git rtsp: clear the entire builder structure And use structure instead of variable with sizeof when clearing the rtsp message structure, for clarity. --- diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index c9bcea0..4ae4a80 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 b4d2e96..a6aa921 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; }