aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-06-03 15:27:43 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-06-03 16:06:23 +0200
commit34f7ed1fc76dbbcd8f2984d4304ec24ead244b43 (patch)
tree1ff4f4daa0e262a1ad243365a983ed4d7e70445e /transact.c
parentf1c6a8ec2cf88cd7b857111e58fab7e72ede7d29 (diff)
downloadfetchmail-34f7ed1fc76dbbcd8f2984d4304ec24ead244b43.tar.gz
fetchmail-34f7ed1fc76dbbcd8f2984d4304ec24ead244b43.tar.bz2
fetchmail-34f7ed1fc76dbbcd8f2984d4304ec24ead244b43.zip
Fix some rare or minor issues found with Clang 2.7 analyzer.
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/transact.c b/transact.c
index b01c2f37..6de2dfca 100644
--- a/transact.c
+++ b/transact.c
@@ -1238,8 +1238,9 @@ process_headers:
for (idp = msgblk.recipients; idp; idp = idp->next)
if (idp->val.status.mark == XMIT_ACCEPT)
break; /* only report first address */
- snprintf(buf+1, sizeof(buf)-1,
- "for <%s>", rcpt_address (ctl, idp->id, 1));
+ if (idp)
+ snprintf(buf+1, sizeof(buf)-1,
+ "for <%s>", rcpt_address (ctl, idp->id, 1));
snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf)-1,
" (%s); ",
MULTIDROP(ctl) ? "multi-drop" : "single-drop");