[Commits] [SCM] claws branch, master, updated. 3.9.2-60-g929d593

mones at claws-mail.org mones at claws-mail.org
Thu Aug 8 09:38:27 CEST 2013


The branch master of project "claws" (Claws Mail) has been updated
       via  929d5936e9ac020f19d5d703f0a52438ffab4738 (commit)
      from  92c22b09a3cd48696604b4980d35691dab8ac605 (commit)


- Log -----------------------------------------------------------------
commit 929d5936e9ac020f19d5d703f0a52438ffab4738
Author: Ricardo Mones <ricardo at mones.org>
Date:   Thu Aug 8 09:34:49 2013 +0200

    Fix msginfo checks
    
    These were discovered by Coccinelle¹ checker running at
    http://firewoes.debian.net/
    
    ¹http://coccinelle.lip6.fr/

diff --git a/src/plugins/notification/notification_popup.c b/src/plugins/notification/notification_popup.c
index 33b3601..5bd64f1 100644
--- a/src/plugins/notification/notification_popup.c
+++ b/src/plugins/notification/notification_popup.c
@@ -446,7 +446,7 @@ static gboolean notification_libnotify_create(MsgInfo *msginfo,
 
   /* Store path to message */
   if(nftype == F_TYPE_MAIL) {
-    if(msginfo->folder && msginfo->folder) {
+    if(msginfo && msginfo->folder) {
       gchar *ident;
       ident = folder_item_get_identifier(msginfo->folder);
       ppopup->msg_path = g_strdup_printf("%s%s%u", ident,G_DIR_SEPARATOR_S,
diff --git a/src/plugins/notification/notification_trayicon.c b/src/plugins/notification/notification_trayicon.c
index 3c764cc..0c21786 100644
--- a/src/plugins/notification/notification_trayicon.c
+++ b/src/plugins/notification/notification_trayicon.c
@@ -715,7 +715,7 @@ static gboolean notification_trayicon_popup_create(MsgInfo *msginfo,
 
   /* Store path to message */
   if(nftype == F_TYPE_MAIL) {
-    if(msginfo->folder && msginfo->folder) {
+    if(msginfo && msginfo->folder) {
       gchar *ident;
       ident = folder_item_get_identifier(msginfo->folder);
       popup.msg_path = g_strdup_printf("%s%s%u", ident,G_DIR_SEPARATOR_S,

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/notification/notification_popup.c    |    2 +-
 src/plugins/notification/notification_trayicon.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list