[PATCH] Fix the build issue for gcc 4.4.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix the build issue for gcc 4.4.4

Hai Lan
When the pointer is uninitialized, the compilor will report error.

Signed-off-by: Hai Lan <[hidden email]>
---
 gst/dtmf/gstdtmfsrc.c    |    2 +-
 gst/dtmf/gstrtpdtmfsrc.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/dtmf/gstdtmfsrc.c b/gst/dtmf/gstdtmfsrc.c
index 6bc4642..0615364 100644
--- a/gst/dtmf/gstdtmfsrc.c
+++ b/gst/dtmf/gstdtmfsrc.c
@@ -641,7 +641,7 @@ static void
 gst_dtmf_src_post_message (GstDTMFSrc * dtmfsrc, const gchar * message_name,
     GstDTMFSrcEvent * event)
 {
-  GstStructure *s;
+  GstStructure *s = NULL;
 
   switch (event->event_type) {
     case DTMF_EVENT_TYPE_START:
diff --git a/gst/dtmf/gstrtpdtmfsrc.c b/gst/dtmf/gstrtpdtmfsrc.c
index 1689dc4..d487d31 100644
--- a/gst/dtmf/gstrtpdtmfsrc.c
+++ b/gst/dtmf/gstrtpdtmfsrc.c
@@ -665,7 +665,7 @@ static void
 gst_dtmf_src_post_message (GstRTPDTMFSrc * dtmfsrc, const gchar * message_name,
     GstRTPDTMFSrcEvent * event)
 {
-  GstStructure *s;
+  GstStructure *s = NULL;
 
   switch (event->event_type) {
     case RTP_DTMF_EVENT_TYPE_START:
--
1.7.3.4

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel