diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/ephy-print-utils.c | 4 |
2 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2006-08-13 Christian Persch <chpe@cvs.gnome.org> + + * lib/ephy-print-utils.c: + (ephy_print_utils_page_setup_new_from_key_file): + + Don't crash on error. Bug #351187. + 2006-08-12 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: diff --git a/lib/ephy-print-utils.c b/lib/ephy-print-utils.c index 2d306206a..8e6ba5feb 100644 --- a/lib/ephy-print-utils.c +++ b/lib/ephy-print-utils.c @@ -96,7 +96,7 @@ ephy_print_utils_settings_new_from_key_file (GKeyFile *key_file, PRINT_SETTINGS_GROUP, &n_keys, error); - if (error) + if (*error != NULL) return NULL; settings = gtk_print_settings_new (); @@ -257,7 +257,7 @@ ephy_print_utils_page_setup_new_from_key_file (GKeyFile *key_file, GtkPageSetup *page_setup = NULL; GtkPaperSize *paper_size; gdouble width, height, top, bottom, left, right; - char *name, *ppd_name, *display_name, *orientation; + char *name = NULL, *ppd_name = NULL, *display_name = NULL, *orientation = NULL; gboolean retval = TRUE; g_return_val_if_fail (key_file != NULL, NULL); |