From 0a47eb237cbea52d5bef362aa3210bd7b00bb3c5 Mon Sep 17 00:00:00 2001 From: Erik Hovland Date: Sun, 15 Mar 2009 14:25:16 +0100 Subject: [PATCH] The assigned value of dom is never used. Remove assignment --- ChangeLog | 25 +++++++++++++++++++++++++ rfc822.c | 3 +-- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 442798f3c..406123b68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,28 @@ +2009-03-15 14:24 +0100 Erik Hovland (557d52627a0e) + + * alias.c: The file handle will leak if fread fails + +2009-03-12 15:16 -0700 Erik Hovland (53bea026a2a2) + + * curs_main.c: resort_index will use menu->current as a index into an + array. If menu->current is negative, bad things can happen. So check + it before calling resort_index + +2009-03-12 16:12 -0700 Erik Hovland (96a72e38e55e) + + * recvcmd.c: 'last' is assigned but never used. Remove assignment. + +2009-03-15 13:46 +0100 Rocco Rutte (1238dff54a15) + + * ChangeLog, alias.c, attach.c, buffy.c, check_sec.sh, commands.c, + compose.c, copy.c, crypt-gpgme.c, crypt.c, edit.c, editmsg.c, + gnupgparse.c, handler.c, headers.c, help.c, history.c, + imap/message.c, init.c, lib.c, main.c, mbox.c, mh.c, mutt_ssl.c, + mutt_ssl_gnutls.c, muttlib.c, pager.c, pattern.c, pgp.c, pgpkey.c, + pgppubring.c, pop.c, postpone.c, query.c, recvattach.c, recvcmd.c, + rfc1524.c, rfc3676.c, send.c, sendlib.c, smime.c, smtp.c: Use + safe_fclose() instead of fclose(), add fclose() to check_sec.sh + 2009-03-10 18:39 +0100 NONAKA Kimihiro (cc6fede605d4) * ChangeLog, mh.c: Fix crashes with 64bit time_t. Closes #3184. diff --git a/rfc822.c b/rfc822.c index f5d4aee96..6676d1d5b 100644 --- a/rfc822.c +++ b/rfc822.c @@ -816,7 +816,6 @@ int rfc822_valid_msgid (const char *msgid) * domain-literal = "[" *(dtext / quoted-pair) "]" */ - char* dom; unsigned int l, i; if (!msgid || !*msgid) @@ -827,7 +826,7 @@ int rfc822_valid_msgid (const char *msgid) return -1; if (msgid[0] != '<' || msgid[l-1] != '>') return -1; - if (!(dom = strrchr (msgid, '@'))) + if (!(strrchr (msgid, '@'))) return -1; /* TODO: complete parser */ -- 2.40.0