SF.net SVN: geany:[4461] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Mon Nov 30 22:59:01 UTC 2009


Revision: 4461
          http://geany.svn.sourceforge.net/geany/?rev=4461&view=rev
Author:   eht16
Date:     2009-11-30 22:58:57 +0000 (Mon, 30 Nov 2009)

Log Message:
-----------
Fix two compiler warnings about possibly uninitialised variables.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/prefs.c
    trunk/src/ui_utils.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-11-30 22:14:34 UTC (rev 4460)
+++ trunk/ChangeLog	2009-11-30 22:58:57 UTC (rev 4461)
@@ -9,6 +9,8 @@
  * plugins/filebrowser.c:
    Add an in-entry clear icon to the filebrowser plugin's filter
    entry (patch by Dominic Hopf, thanks).
+ * src/prefs.c, src/ui_uitls.c:
+   Fix two compiler warnings about possibly uninitialised variables.
 
 
 2009-11-29  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/prefs.c
===================================================================
--- trunk/src/prefs.c	2009-11-30 22:14:34 UTC (rev 4460)
+++ trunk/src/prefs.c	2009-11-30 22:58:57 UTC (rev 4461)
@@ -1459,7 +1459,7 @@
 static void open_preferences_help(void)
 {
 	gchar *uri;
-	const gchar *label, *suffix;
+	const gchar *label, *suffix = NULL;
 	GtkNotebook *notebook = GTK_NOTEBOOK(
 		ui_lookup_widget(ui_widgets.prefs_dialog, "notebook2"));
 	gint page_nr = gtk_notebook_get_current_page(notebook);

Modified: trunk/src/ui_utils.c
===================================================================
--- trunk/src/ui_utils.c	2009-11-30 22:14:34 UTC (rev 4460)
+++ trunk/src/ui_utils.c	2009-11-30 22:58:57 UTC (rev 4461)
@@ -1649,7 +1649,7 @@
 	GtkEntry *entry =
 		(GtkEntry *) g_object_get_data(G_OBJECT(path_box), "entry");
 	const gchar *title = g_object_get_data(G_OBJECT(path_box), "title");
-	gchar *utf8_path;
+	gchar *utf8_path = NULL;
 
 	/* TODO: extend for other actions */
 	g_return_if_fail(action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER ||


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list