]> granicus.if.org Git - mutt/commitdiff
Remove pointless NULL checks against arrays.
authorSébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
Sun, 9 Mar 2008 21:01:24 +0000 (14:01 -0700)
committerSébastien Hinderer <Sebastien.Hinderer@ens-lyon.org>
Sun, 9 Mar 2008 21:01:24 +0000 (14:01 -0700)
This silences a warning on newer GCCs.

ChangeLog
compose.c
mx.c

index fdf1a5b1616253c04f5692e6dd9cb29304039cbb..0d077ca5df5405d7de292ea716ffb353310ded05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-03-04 22:00 -0800  Petr Písař  <petr.pisar@atlas.cz>  (fdad7b9fa741)
+
+       * po/cs.po: Updated Czech translation
+
+2008-03-02 21:45 -0800  Vincent Lefevre  <vincent@vinc17.org>  (9a7d802004d3)
+
+       * po/fr.po: Updated French translation.
+
 2008-02-27 14:45 +0100  Rocco Rutte  <pdmef@gmx.net>  (553ae136f20e)
 
        * COPYRIGHT, main.c: Update copyright years in 'mutt -v' output and
@@ -5,8 +13,7 @@
 
 2008-02-27 13:27 +0100  Anders Helmersson  <anders.helmersson.utsikt@wasadata.net>  (d2eb082fd872)
 
-       * ChangeLog, curs_lib.c: Fix progress updates for large messages.
-       Closes #3029.
+       * curs_lib.c: Fix progress updates for large messages. Closes #3029.
 
 2008-02-27 09:30 +0100  N.J. Mann  <njm@njm.f2s.com>  (eb4e214c8ced)
 
@@ -14,8 +21,7 @@
 
 2008-02-20 12:02 +0100  Rocco Rutte  <pdmef@gmx.net>  (9414b9dd36db)
 
-       * ChangeLog, muttlib.c: Fix truncation logic for soft-padding (Closes
-       #3035).
+       * muttlib.c: Fix truncation logic for soft-padding (Closes #3035).
 
 2008-01-29 21:06 -0800  Brendan Cully  <brendan@kublai.com>  (fd741c1922f3)
 
@@ -23,7 +29,7 @@
 
 2008-01-29 21:05 -0800  Benno Schulenberg  <i18n@benno.vertaalt.nl>  (95807c4b824f)
 
-       * ChangeLog, po/nl.po: Improvements to the Dutch translation
+       * po/nl.po: Improvements to the Dutch translation
 
 2008-01-17 17:32 +0100  Rocco Rutte  <pdmef@gmx.net>  (039d939d8c3e)
 
@@ -41,8 +47,6 @@
        special to mutt_expand_path() may cause undesired expansion. Closes
        #1719.
 
-2008-01-15 15:07 +0100  Rocco Rutte  <pdmef@gmx.net>  (02fd1874a894)
-
        * INSTALL, README: Update stale INSTALL+README files
 
        * mh.c: Make maildir_delayed_parsing() more readable
index 3103843afcccb4028a6343e4032e5cddf2df3710..0957bba810de221482e67ff087f3abccb2da4151 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -1207,7 +1207,7 @@ int mutt_compose_menu (HEADER *msg,   /* structure for new message */
          if (msg->content->next)
            msg->content = mutt_make_multipart (msg->content);
 
-         if (mutt_write_fcc (NONULL (fname), msg, NULL, 1, NULL) < 0)
+         if (mutt_write_fcc (fname, msg, NULL, 1, NULL) < 0)
            msg->content = mutt_remove_multipart (msg->content);
          else
            mutt_message _("Message written.");
diff --git a/mx.c b/mx.c
index 9ad033262d9056120dbe8b3d567c41bc022544a6..d4b7203f0f0c1c1deb68b793efef2d59390b0570 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -856,7 +856,7 @@ int mx_close_mailbox (CONTEXT *ctx, int *index_hint)
       isSpool = mutt_is_spool (ctx->path) && !mutt_is_spool (mbox);
     }
 
-    if (isSpool && mbox && *mbox)
+    if (isSpool && *mbox)
     {
       mutt_expand_path (mbox, sizeof (mbox));
       snprintf (buf, sizeof (buf), _("Move read messages to %s?"), mbox);