[totem] Initialize a variable to NULL to fix a (correct) compiler warning



commit f093f3c006adeb165ab0e1e2f6bfa09ea5caf447
Author: Sebastian Dröge <sebastian droege collabora co uk>
Date:   Mon Nov 16 17:08:30 2009 +0100

    Initialize a variable to NULL to fix a (correct) compiler warning

 browser-plugin/totem-plugin-viewer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 63547b8..e091cf2 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -1287,7 +1287,7 @@ resolve_redirect (const char *old_mrl, const char *mrl)
 static void
 on_got_redirect (GtkWidget *bvw, const char *mrl, TotemEmbedded *emb)
 {
-	char *new_uri;
+	char *new_uri = NULL;
 
 	g_message ("stream uri: %s", emb->stream_uri ? emb->stream_uri : "(null)");
 	g_message ("current uri: %s", emb->current_uri ? emb->current_uri : "(null)");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]