From 43b563fabd2d86161677fd2edd83ff1a9f1625e3 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 29 Apr 2010 10:44:44 +0200 Subject: Fix two warning: the address of * will always evaluate as 'true'. --- smbutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smbutil.c') 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); \ -- cgit v1.2.3