diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-08-14 04:20:44 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-08-14 04:20:44 +0800 |
commit | f96e67bf1f8ee16555ddfa2b30f9231a38751cb4 (patch) | |
tree | a0db2c357c4418fc2ea7abbc5fbfd3872240a69f /lib | |
parent | 04e578c716a00a2553cdef54a9c2cf3a7885b3ef (diff) | |
download | gsoc2013-epiphany-f96e67bf1f8ee16555ddfa2b30f9231a38751cb4.tar.gz gsoc2013-epiphany-f96e67bf1f8ee16555ddfa2b30f9231a38751cb4.tar.zst gsoc2013-epiphany-f96e67bf1f8ee16555ddfa2b30f9231a38751cb4.zip |
Don't crash on error. Bug #351187.
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-print-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |