aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-29 10:44:44 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-29 10:44:44 +0200
commit43b563fabd2d86161677fd2edd83ff1a9f1625e3 (patch)
treefb52448529a250f10eb37711b6f38d0b09fde5f4
parentca89de66107d7fed50eac1f9beb0f16655c8491d (diff)
downloadfetchmail-43b563fabd2d86161677fd2edd83ff1a9f1625e3.tar.gz
fetchmail-43b563fabd2d86161677fd2edd83ff1a9f1625e3.tar.bz2
fetchmail-43b563fabd2d86161677fd2edd83ff1a9f1625e3.zip
Fix two warning: the address of * will always evaluate as 'true'.
-rw-r--r--NEWS1
-rw-r--r--smbutil.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 96bcfd54..7a7823b5 100644
--- a/NEWS
+++ b/NEWS
@@ -88,6 +88,7 @@ fetchmail-6.3.17 (not yet released):
are now helpful pointers to --sslcertpath and c_rehash for "unable to get
local issuer certificate" and self-signed certificates -- these usually hint
to missing root signing CAs in the certs directory.
+* Several fixes for compiler (GCC, Intel C++, CLang) and autotools warnings
# DOCUMENTATION
* Fix table of global option to read "set softbounce" where there used to be a
diff --git a/smbutil.c b/smbutil.c
index a26b3496..ed6ec8a5 100644
--- a/smbutil.c
+++ b/smbutil.c
@@ -26,7 +26,7 @@ char versionString[] ="libntlm version 0.21";
#define AddBytes(ptr, header, buf, count) \
{ \
-if (buf && count) \
+if (buf != NULL && count != 0) \
{ \
SSVAL(&ptr->header.len,0,count); \
SSVAL(&ptr->header.maxlen,0,count); \