[balsa/gtk3] Possible fix for RedHat bug #831889 (Geoff Leach)



commit 42cebde1d439d13bd59e745f8f775b0c5b560e5d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Thu Jan 29 11:52:42 2015 -0500

    Possible fix for RedHat bug #831889 (Geoff Leach)
    
        * src/sendmsg-window.c (collect_for_quote): check for NULL root.

 ChangeLog            |    6 ++++++
 src/sendmsg-window.c |    7 ++++++-
 2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 90d1169..fc31f46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-01-29  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       Possible fix for RedHat bug #831889 (Geoff Leach)
+
+       * src/sendmsg-window.c (collect_for_quote): check for NULL root.
+
+2015-01-29  Peter Bloomfield  <pbloomfield bellsouth net>
+
        Possible fix for RedHat bug #1097953 (Geoff Leach)
 
        * src/main-window.c (balsa_window_class_init), (balsa_window_new),
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index dfdbcf0..30cf2f0 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -3428,9 +3428,14 @@ collect_for_quote(LibBalsaMessageBody *root, gchar * reply_prefix_str,
 {
     GtkTreeStore * tree_store;
     gint text_bodies;
-    LibBalsaMessage *message = root->message;
+    LibBalsaMessage *message;
     GString *q_body = NULL;
 
+
+    if (!root)
+        return q_body;
+
+    message = root->message;
     libbalsa_message_body_ref(message, FALSE, FALSE);
 
     /* scan the message and collect text parts which might be included


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]