From: Andy Spencer Date: Mon, 2 Jan 2012 00:56:37 +0000 (+0000) Subject: Initialize NEXRAD site setup data X-Git-Tag: v0.7~23 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=0cb62958132dcbc90cd5d39e1a6f2046a9c520b3 Initialize NEXRAD site setup data This fixes a `sites may be uninitialized' compiler warning. Sites would always be initialize anyway because of the order things are listed in aweather-locations.c --- diff --git a/src/aweather-gui.c b/src/aweather-gui.c index 4c234e5..c34c6e4 100644 --- a/src/aweather-gui.c +++ b/src/aweather-gui.c @@ -391,7 +391,7 @@ static void site_setup(AWeatherGui *self) static void menu_setup(AWeatherGui *self) { GtkWidget *menu = aweather_gui_get_widget(self, "main_menu_radar"); - GtkWidget *states, *state, *sites, *site; + GtkWidget *states=NULL, *state=NULL, *sites=NULL, *site=NULL; states = gtk_menu_new(); gtk_menu_item_set_submenu(GTK_MENU_ITEM(menu), states);