This patch fix a stupid segfault in gnome-control-center/libbackground/preferences.c in bg_preferences_merge_entry() if there is no wallpaper-filename conf. -- Jean Schurger fr alcove com - Free Software Engineer Alcove - (+33) 149 226 800 - http://www.alcove.com jschurger schurger org - (+33) 661 415 920 PGP Fingerprint : E6487B18CAD0810469E98869790D563DEBA1535
diff -uNr old/gnome-control-center/libbackground/preferences.c new/gnome-control-center/libbackground/preferences.c --- old/gnome-control-center/libbackground/preferences.c Thu Dec 20 21:47:43 2001 +++ new/gnome-control-center/libbackground/preferences.c Wed Jan 9 09:38:38 2002 @@ -240,6 +240,7 @@ } else if (!strcmp (entry->key, "/desktop/gnome/background/wallpaper-enabled")) { if (gconf_value_get_bool (value) && + (prefs->wallpaper_filename != NULL) && strcmp (prefs->wallpaper_filename, "") != 0 && strcmp (prefs->wallpaper_filename, "(none)") != 0) prefs->wallpaper_enabled = TRUE;
Attachment:
pgpW7Gy5PjNQk.pgp
Description: PGP signature