Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorAndreas Liebe <liebe@hrz.tu-darmstadt.de>2009-07-25 00:21:59 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@yandex.ru>2009-07-25 00:21:59 (GMT)
commitcc3f21efc8104182171c9300facc16d9a79177ef (patch)
tree5e08544762f572b82101c6dda59c124a50a2ea10 /shell
parent466a2b3ce0c1cfa49b504704f3ec20c65140310f (diff)
[print] Fixes segmentation violation when format is empty
Where the printf functions do not accept NULL for %s. Fixes GNOME bug #589226.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-print-operation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-print-operation.c b/shell/ev-print-operation.c
index efb00a9..4e78c3f 100644
--- a/shell/ev-print-operation.c
+++ b/shell/ev-print-operation.c
@@ -1148,7 +1148,7 @@ ev_print_operation_export_print_dialog_response_cb (GtkDialog *dial
file_format = gtk_print_settings_get (print_settings, GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT);
- filename = g_strdup_printf ("evince_print.%s.XXXXXX", file_format);
+ filename = g_strdup_printf ("evince_print.%s.XXXXXX", file_format != NULL ? file_format : "");
export->fd = g_file_open_tmp (filename, &export->temp_file, &error);
g_free (filename);
if (export->fd <= -1) {