diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-06-03 15:27:43 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-06-03 16:06:23 +0200 |
commit | 34f7ed1fc76dbbcd8f2984d4304ec24ead244b43 (patch) | |
tree | 1ff4f4daa0e262a1ad243365a983ed4d7e70445e /interface.c | |
parent | f1c6a8ec2cf88cd7b857111e58fab7e72ede7d29 (diff) | |
download | fetchmail-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 'interface.c')
-rw-r--r-- | interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface.c b/interface.c index 287eaf18..7bdd2de6 100644 --- a/interface.c +++ b/interface.c @@ -514,7 +514,7 @@ get_ifinfo(const char *ifname, ifinfo_t *ifinfo) } sin = (struct sockaddr_in *)info.rti_info[RTAX_NETMASK]; - if (!sin) + if (sin) { ifinfo->netmask = sin->sin_addr; } @@ -524,7 +524,7 @@ get_ifinfo(const char *ifname, ifinfo_t *ifinfo) * of non point-to-point link */ sin = (struct sockaddr_in *)info.rti_info[RTAX_BRD]; - if (!sin) + if (sin) { ifinfo->dstaddr = sin->sin_addr; } |