diff options
author | Marek Kasik <mkasik@redhat.com> | 2014-03-14 15:36:10 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-03-17 14:37:34 -0400 |
commit | b95ce71b89f02a58902f5784ef51fa2e0c49c27f (patch) | |
tree | 936254cd6a554a4ac0d3f3505048580097cfbaf4 /gtk/gtkprintjob.c | |
parent | 3693045566793cb926d828cf4836a030ec550e1a (diff) | |
download | gtk+-b95ce71b89f02a58902f5784ef51fa2e0c49c27f.tar.gz |
printing: Fail nicely when /tmp is not writable
Don't crash when /tmp is not writable when printing to file.
Show that getting of printer details failed for CUPS printers.
https://bugzilla.gnome.org/show_bug.cgi?id=693200
Diffstat (limited to 'gtk/gtkprintjob.c')
-rw-r--r-- | gtk/gtkprintjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkprintjob.c b/gtk/gtkprintjob.c index d31b7dc061..05772ad6f2 100644 --- a/gtk/gtkprintjob.c +++ b/gtk/gtkprintjob.c @@ -473,7 +473,7 @@ gtk_print_job_get_surface (GtkPrintJob *job, GError **error) { GtkPrintJobPrivate *priv; - gchar *filename; + gchar *filename = NULL; gdouble width, height; GtkPaperSize *paper_size; int fd; |