[Frugalware-git] gfpm: gfpm-quickpane: pre-initialize all widget pointers to NULL

Priyank priyank at frugalware.org
Thu Feb 28 20:04:30 CET 2008


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=gfpm.git;a=commitdiff;h=cd0a05aac3d3591a40b206d9095f31b4770832cf

commit cd0a05aac3d3591a40b206d9095f31b4770832cf
Author: Priyank <priyank at frugalware.org>
Date:   Fri Feb 29 00:34:02 2008 +0530

gfpm-quickpane: pre-initialize all widget pointers to NULL

diff --git a/src/gfpm-quickpane.c b/src/gfpm-quickpane.c
index 977204b..9b87294 100644
--- a/src/gfpm-quickpane.c
+++ b/src/gfpm-quickpane.c
@@ -31,14 +31,14 @@ extern GfpmList *remove_list;
extern GtkWidget *gfpm_pkgs_tvw;
extern GtkWidget *gfpm_mw;

-static GtkWidget *quick_pane;
-static GtkWidget *quick_pane_install_btn;
-static GtkWidget *quick_pane_remove_btn;
-static GtkWidget *quick_pane_upgrade_btn;
-static GtkWidget *quick_pane_readme_btn;
-static GtkWidget *quick_pane_readme_dlg;
-static GtkWidget *quick_pane_readme_dlg_txtvw;
-static GtkWidget *quick_pane_readme_dlg_label;
+static GtkWidget *quick_pane = NULL;
+static GtkWidget *quick_pane_install_btn = NULL;
+static GtkWidget *quick_pane_remove_btn = NULL;
+static GtkWidget *quick_pane_upgrade_btn = NULL;
+static GtkWidget *quick_pane_readme_btn = NULL;
+static GtkWidget *quick_pane_readme_dlg = NULL;
+static GtkWidget *quick_pane_readme_dlg_txtvw = NULL;
+static GtkWidget *quick_pane_readme_dlg_label = NULL;

static void cb_gfpm_quickpane_install_clicked (GtkWidget *button, gpointer data);
static void cb_gfpm_quickpane_remove_clicked (GtkWidget *button, gpointer data);


More information about the Frugalware-git mailing list