Commit 34f7ed1fc76dbbcd8f2984d4304ec24ead244b43

Fix some rare or minor issues found with Clang 2.7 analyzer.
  
422422#define NUM_ZERO(n) ((n) < 0)
423423#define NUM_SPECIFIED(n) ((n) != 0)
424424
425#define MULTIDROP(ctl) (ctl->wildcard || \
426 ((ctl)->localnames && (ctl)->localnames->next))
425#define MULTIDROP(ctl) ((ctl)->wildcard || \
426 ((ctl)->localnames && (ctl)->localnames->next))
427427
428428/*
429429 * Note: tags are generated with an a%04d format from a 1-origin
  
514514 }
515515
516516 sin = (struct sockaddr_in *)info.rti_info[RTAX_NETMASK];
517 if (!sin)
517 if (sin)
518518 {
519519 ifinfo->netmask = sin->sin_addr;
520520 }
524524 * of non point-to-point link
525525 */
526526 sin = (struct sockaddr_in *)info.rti_info[RTAX_BRD];
527 if (!sin)
527 if (sin)
528528 {
529529 ifinfo->dstaddr = sin->sin_addr;
530530 }
sink.c
(3 / 0)
  
649649 int n, oldphase;
650650 char *last;
651651
652 if (!buf)
653 return -1;
654
652655 /* The line may contain NUL characters. Find the last char to use
653656 * -- the real line termination is the sequence "\n\0".
654657 */
transact.c
(3 / 2)
  
12381238 for (idp = msgblk.recipients; idp; idp = idp->next)
12391239 if (idp->val.status.mark == XMIT_ACCEPT)
12401240 break; /* only report first address */
1241 snprintf(buf+1, sizeof(buf)-1,
1242 "for <%s>", rcpt_address (ctl, idp->id, 1));
1241 if (idp)
1242 snprintf(buf+1, sizeof(buf)-1,
1243 "for <%s>", rcpt_address (ctl, idp->id, 1));
12431244 snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf)-1,
12441245 " (%s); ",
12451246 MULTIDROP(ctl) ? "multi-drop" : "single-drop");