From: Sébastien Hinderer Date: Sun, 9 Mar 2008 21:01:24 +0000 (-0700) Subject: Remove pointless NULL checks against arrays. X-Git-Tag: mutt-1-5-18-rel~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e84eecfb9a2908e062f8e4cfb9cc742d59506504;p=mutt Remove pointless NULL checks against arrays. This silences a warning on newer GCCs. --- diff --git a/ChangeLog b/ChangeLog index fdf1a5b1..0d077ca5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-03-04 22:00 -0800 Petr Písař (fdad7b9fa741) + + * po/cs.po: Updated Czech translation + +2008-03-02 21:45 -0800 Vincent Lefevre (9a7d802004d3) + + * po/fr.po: Updated French translation. + 2008-02-27 14:45 +0100 Rocco Rutte (553ae136f20e) * COPYRIGHT, main.c: Update copyright years in 'mutt -v' output and @@ -5,8 +13,7 @@ 2008-02-27 13:27 +0100 Anders Helmersson (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 (eb4e214c8ced) @@ -14,8 +21,7 @@ 2008-02-20 12:02 +0100 Rocco Rutte (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 (fd741c1922f3) @@ -23,7 +29,7 @@ 2008-01-29 21:05 -0800 Benno Schulenberg (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 (039d939d8c3e) @@ -41,8 +47,6 @@ special to mutt_expand_path() may cause undesired expansion. Closes #1719. -2008-01-15 15:07 +0100 Rocco Rutte (02fd1874a894) - * INSTALL, README: Update stale INSTALL+README files * mh.c: Make maildir_delayed_parsing() more readable diff --git a/compose.c b/compose.c index 3103843a..0957bba8 100644 --- 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 9ad03326..d4b7203f 100644 --- 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);