[evolution-patches] [Mailer] Crash in em-utils
- From: Hans Petter Jansson <hpj ximian com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] [Mailer] Crash in em-utils
- Date: Tue, 24 Aug 2004 23:54:29 -0500
Stumbled over this one while looking at another problem. See ChangeLog.
--
Hans Petter
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3438
diff -u -p -r1.3438 ChangeLog
--- ChangeLog 24 Aug 2004 02:54:03 -0000 1.3438
+++ ChangeLog 25 Aug 2004 04:52:14 -0000
@@ -1,3 +1,9 @@
+2004-08-24 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-23 Not Zed <NotZed Ximian com>
* em-folder-tree.c (em_folder_tree_set_selected): store the
Index: em-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-utils.c,v
retrieving revision 1.49
diff -u -p -r1.49 em-utils.c
--- em-utils.c 16 Aug 2004 03:31:21 -0000 1.49
+++ em-utils.c 25 Aug 2004 04:52:14 -0000
@@ -369,7 +369,7 @@ emu_can_save(GtkWindow *parent, const ch
{
struct stat st;
- if (path[0] == 0)
+ if (!path || path[0] == 0)
return FALSE;
/* make sure we can actually save to it... */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]