[balsa] balsa-app: Check for NULL outbox



commit c17243427f9dbdc41a647101172a35bf77cf00e4
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun May 12 10:05:07 2019 -0400

    balsa-app: Check for NULL outbox

 src/balsa-app.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/balsa-app.c b/src/balsa-app.c
index 1ecb18dc0..2ce5f8903 100644
--- a/src/balsa-app.c
+++ b/src/balsa-app.c
@@ -269,6 +269,10 @@ static gboolean
 send_queued_messages_auto_cb(gpointer data)
 {
        g_debug("%s: %p", __func__, data);
+
+        if (balsa_app.outbox == NULL)
+            return G_SOURCE_REMOVE;
+
        libbalsa_process_queue(balsa_app.outbox, balsa_find_sentbox_by_url, balsa_app.smtp_servers, FALSE, 
NULL);
     return (data == NULL);
 }


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