Browse Source

[master] a trivial style cleanup: do not rely on explicit conversion
from a pointer to bool (following BIND 9's style convention).
so trivial, skipping review.

JINMEI Tatuya 14 years ago
parent
commit
7c42c6d38d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/memory_datasrc.cc

+ 1 - 1
src/lib/datasrc/memory_datasrc.cc

@@ -253,7 +253,7 @@ struct MemoryZone::MemoryZoneImpl {
         }
 
         // handle type any query
-        if (target && !node->getData()->empty()) {
+        if (target != NULL && !node->getData()->empty()) {
             // Empty domain will be handled as NXRRSET by normal processing
             for (found = node->getData()->begin();
                  found != node->getData()->end(); found++)