From f96e67bf1f8ee16555ddfa2b30f9231a38751cb4 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 13 Aug 2006 20:20:44 +0000 Subject: Don't crash on error. Bug #351187. 2006-08-13 Christian Persch * lib/ephy-print-utils.c: (ephy_print_utils_page_setup_new_from_key_file): Don't crash on error. Bug #351187. --- lib/ephy-print-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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); -- cgit