aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2004-08-28 02:49:05 +0800
committerHans Petter <hansp@src.gnome.org>2004-08-28 02:49:05 +0800
commitafd6e11236d3e63685e3bcd4588dee000c5222a3 (patch)
treedda95ba0285b6a0ffe0d8d468fb10222b2b8045a /mail
parent1f2e1f81abfbfce5a7292871bbce7ca680d4200a (diff)
downloadgsoc2013-evolution-afd6e11236d3e63685e3bcd4588dee000c5222a3.tar.gz
gsoc2013-evolution-afd6e11236d3e63685e3bcd4588dee000c5222a3.tar.zst
gsoc2013-evolution-afd6e11236d3e63685e3bcd4588dee000c5222a3.zip
Don't crash if we're passed a NULL path. GtkFileChooser can return NULL
2004-08-27 Hans Petter Jansson <hpj@ximian.com> * em-utils.c (emu_can_save): Don't crash if we're passed a NULL path. GtkFileChooser can return NULL filenames that get passed to this function. svn path=/trunk/; revision=27048
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-utils.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 6ef0c850fd..fa4d235a62 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2004-08-27 Hans Petter Jansson <hpj@ximian.com>
+
+ * em-utils.c (emu_can_save): Don't crash if we're passed a NULL
+ path. GtkFileChooser can return NULL filenames that get passed
+ to this function.
+
2004-08-26 Christian Neumair <chris@gnome-de.org>
* GNOME_Evolution_Mail.server.in.in:
diff --git a/mail/em-utils.c b/mail/em-utils.c
index 6d7d4a2ba6..d50cbfc076 100644
--- a/mail/em-utils.c
+++ b/mail/em-utils.c
@@ -369,7 +369,7 @@ emu_can_save(GtkWindow *parent, const char *path)
{
struct stat st;
- if (path[0] == 0)
+ if (!path || path[0] == 0)
return FALSE;
/* make sure we can actually save to it... */