[PATCH]: gnome-print




This is a patch for a rather obvious bug in gnome-print that made the
opening of the printing dialog crash(under SUN/solaris). Basically, an
unused variable was used and an unneccessary extra
gnome_config_push_prefix/pop_prefix.

/Marcus



? diffs
Index: gnome-printer-profile.c
===================================================================
RCS file: /cvs/gnome/gnome-print/gnome-printer-profile.c,v
retrieving revision 1.1
diff -u -r1.1 gnome-printer-profile.c
--- gnome-printer-profile.c	1999/02/14 23:35:29	1.1
+++ gnome-printer-profile.c	1999/03/28 14:34:26
@@ -29,7 +29,7 @@
 static void
 gnome_printer_load_profiles_from (char *filename, GnomePrinterProfileList **list)
 {
-	char *base_prefix, *prefix, *name;
+	char *base_prefix, *name;
 	int base_len;
 	void *iter;
 	
@@ -39,9 +39,8 @@
 	strcat (base_prefix+1, "=");
 	base_len = strlen (base_prefix);
 	
-	iter = gnome_config_init_iterator_sections (prefix);
+	iter = gnome_config_init_iterator_sections (base_prefix);
 
-	gnome_config_push_prefix (prefix);
 	while (gnome_config_iterator_next (iter, &name, NULL)){
 		GnomePrinterProfile *pp = g_new0 (GnomePrinterProfile, 1);
 		char *prefix;
@@ -65,7 +64,6 @@
 
 		gnome_config_pop_prefix ();
 	}
-	gnome_config_pop_prefix ();
 }
 
 static void


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