git://developer.intra2net.com
/
bpdyndnsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ba30914
)
Fix test for valid pointer after conversion to boost::smart_ptr (The class defines...
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 3 Aug 2009 09:26:45 +0000 (11:26 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Mon, 3 Aug 2009 09:26:45 +0000 (11:26 +0200)
src/config.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/config.cpp
b/src/config.cpp
index
35975ad
..
1144eff
100644
(file)
--- a/
src/config.cpp
+++ b/
src/config.cpp
@@
-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);
}