]> Pileus Git - aweather/commitdiff
Initialize NEXRAD site setup data
authorAndy Spencer <andy753421@gmail.com>
Mon, 2 Jan 2012 00:56:37 +0000 (00:56 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 2 Jan 2012 00:56:37 +0000 (00:56 +0000)
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

src/aweather-gui.c

index 4c234e55949b7265e90fb7dcac7a08a9ecb88a33..c34c6e4dd396f1e460f36cc92a348e831b13b656 100644 (file)
@@ -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);