diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-09-30 15:18:46 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-09-30 15:18:46 +0800 |
commit | d7368311fe43d9fc46179c740ee6ae8da6822736 (patch) | |
tree | a17259b34b6e0d8b74fc248a35167dc2c5b86349 /embed/print-dialog.c | |
parent | d573e7f57f85d6b8c537f631c58638b0f71db01f (diff) | |
download | gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.tar gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.tar.gz gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.tar.bz2 gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.tar.lz gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.tar.xz gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.tar.zst gsoc2013-epiphany-d7368311fe43d9fc46179c740ee6ae8da6822736.zip |
Don't pass NULL to gnome_vfs_expand_initial_tilde.
2003-09-30 Christian Persch <chpe@cvs.gnome.org>
* embed/print-dialog.c: (print_get_info):
Don't pass NULL to gnome_vfs_expand_initial_tilde.
Diffstat (limited to 'embed/print-dialog.c')
-rwxr-xr-x | embed/print-dialog.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/embed/print-dialog.c b/embed/print-dialog.c index 1e20c9048..efecf68d5 100755 --- a/embed/print-dialog.c +++ b/embed/print-dialog.c @@ -270,6 +270,7 @@ print_get_info (EphyDialog *dialog) GValue page_url = {0, }; GValue date = {0, }; GValue page_numbers = {0, }; + const char *filename; info = g_new0 (EmbedPrintInfo, 1); @@ -282,7 +283,15 @@ print_get_info (EphyDialog *dialog) g_value_unset (&printer); ephy_dialog_get_value (dialog, FILE_PROP, &file); - info->file = gnome_vfs_expand_initial_tilde (g_value_get_string (&file)); + filename = g_value_get_string (&file); + if (filename != NULL) + { + info->file = gnome_vfs_expand_initial_tilde (g_value_get_string (&file)); + } + else + { + info->file = NULL; + } g_value_unset (&file); ephy_dialog_get_value (dialog, BOTTOM_PROP, &bottom_margin); |