From: Otto Date: Mon, 11 Jan 2021 09:05:56 +0000 (+0100) Subject: CodeQL: use && for logical and X-Git-Tag: rec-4.5.0-alpha1~20^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9930%2Fhead;p=thirdparty%2Fpdns.git CodeQL: use && for logical and --- 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);