commit ea932240c3d948ef79d5e1a65e83d772c8c29805
parent 132dc8630e04d9ecbbacd31665f3bedce8a8e9ea
Author: Amitai Schleier <schmonz-web-git@schmonz.com>
Date: Thu, 24 Dec 2020 15:54:24 +0100
Fix -Wparentheses.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dns.c b/dns.c
@@ -50,7 +50,7 @@ int type;
if (!stralloc_copy(&glue,domain)) return DNS_MEM;
if (!stralloc_0(&glue)) return DNS_MEM;
if (!responsebuflen)
- if (response.buf = (unsigned char *)alloc(PACKETSZ+1))
+ if ((response.buf = (unsigned char *)alloc(PACKETSZ+1)))
responsebuflen = PACKETSZ+1;
else return DNS_MEM;