Fix type: Boost::shared_ptr supports conversion to bool but not to char*
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 12 Dec 2011 11:00:42 +0000 (12:00 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 12 Dec 2011 11:00:42 +0000 (12:00 +0100)
src/dns/dnsresolver.cpp

index 1fcfb77..1384ba0 100644 (file)
@@ -248,7 +248,7 @@ void DnsResolver::fill_resolved_ip_list(
 
     BOOST_FOREACH( shared_ptr<resource_base_t> resource_record, answers_list )
     {
-        if ( ( resource_record != NULL ) &&
+        if ( resource_record &&
              ( resource_record->rtype() == boost::net::dns::type_a ) )
         {
             a_resource *a_rr = dynamic_cast<a_resource *> (