From 90d5e91739fd1b93f15e125392643e0774524296 Mon Sep 17 00:00:00 2001 From: Otto Date: Mon, 11 Jan 2021 10:05:56 +0100 Subject: [PATCH] CodeQL: use && for logical and --- pdns/zone2sql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/zone2sql.cc b/pdns/zone2sql.cc index 887259f92c..e513ead107 100644 --- a/pdns/zone2sql.cc +++ b/pdns/zone2sql.cc @@ -141,7 +141,7 @@ static void emitRecord(const DNSName& zoneName, const DNSName &DNSqname, const s int disabled=0; string recordcomment; - if(g_doJSONComments & !comment.empty()) { + if(g_doJSONComments && !comment.empty()) { string::size_type pos = comment.find("json={"); if(pos!=string::npos) { string json = comment.substr(pos+5); -- 2.47.2