Problems compiling mailcheck.c in gnome-core



Had a missing variable declaration in gnome-core/applets/gen_util/mailcheck.c,
also was getting a warning about variable may be used uninitialized, not sure
this is the right fix, but it's a try:

--- mailcheck.c.orig	Wed Jan 27 14:27:38 1999
+++ mailcheck.c	Wed Jan 27 14:29:08 1999
@@ -412,11 +412,11 @@
 			       strstr (e->d_name, ".jpg")))
 				continue;
 
+			s = g_strdup (e->d_name);
 			if (!mc->selected_pixmap_name)
 				mc->selected_pixmap_name = s;
 			if (basename && strcmp (basename, e->d_name) == 0)
 				select_item = i;
-			s = g_strdup (e->d_name);
 			item = gtk_menu_item_new_with_label (s);
 			i++;
 			gtk_widget_show (item);
@@ -472,6 +472,7 @@
 apply_properties_callback (GtkWidget *widget, gint button_num, gpointer data)
 {
 	MailCheck *mc = (MailCheck *)data;
+	char	  *text;
 	
 	mc->update_freq = (guint)(gtk_spin_button_get_value_as_float (GTK_SPIN_BUTTON (mc->spin))*1000);
 	gtk_timeout_remove (mc->mail_timeout);



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