[gnome-panel] [panel] Initialize GError to NULL in panel_launcher_create_from_info()



commit bf77817b69d0a96fa34ce8ba83f219d811fcf736
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Jan 14 04:16:37 2010 +0100

    [panel] Initialize GError to NULL in panel_launcher_create_from_info()
    
    Should fix https://bugzilla.gnome.org/show_bug.cgi?id=594054

 gnome-panel/launcher.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/launcher.c b/gnome-panel/launcher.c
index 4c3d8b7..fe01596 100644
--- a/gnome-panel/launcher.c
+++ b/gnome-panel/launcher.c
@@ -955,6 +955,8 @@ panel_launcher_create_from_info (PanelToplevel *toplevel,
 	}
 
 	location = panel_make_unique_desktop_uri (NULL, exec_or_uri);
+
+	error = NULL;
 	if (panel_key_file_to_file (key_file, location, &error)) {
 		panel_launcher_create (toplevel, position, location);
 	} else {



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