]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
CodeQL: use && for logical and 9930/head
authorOtto <otto.moerbeek@open-xchange.com>
Mon, 11 Jan 2021 09:05:56 +0000 (10:05 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 11 Jan 2021 09:05:56 +0000 (10:05 +0100)
pdns/zone2sql.cc

index 887259f92cee3e9aa95e6491747b7df64c9ec40d..e513ead107fa23f8480747da03a2b359d3afeb23 100644 (file)
@@ -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);