Fix test for valid pointer after conversion to boost::smart_ptr (The class defines...
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 3 Aug 2009 09:26:45 +0000 (11:26 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 3 Aug 2009 09:26:45 +0000 (11:26 +0200)
src/config.cpp

index 35975ad..1144eff 100644 (file)
@@ -115,7 +115,7 @@ int Config::parse_cmd_line(int argc, char *argv[])
             //TODO: convert protocol option to lowercase
 
             ServicePtr service = create_service(protocol,host,login,password);
-            if ( service != NULL )
+            if ( service )
                 Services.push_back(service);
             else
                 return 1;
@@ -209,7 +209,7 @@ int Config::load_service_config_file(const string& full_filename)
                 //protocol = tolower(protocol.c_str());
 
                 ServicePtr service = create_service(protocol,host,login,password);
-                if ( service != NULL )
+                if ( service )
                 {
                     Services.push_back(service);
                 }