]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2445] do explicit check for NULL against a pointer
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 5 Dec 2012 08:11:18 +0000 (00:11 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 5 Dec 2012 08:11:18 +0000 (00:11 -0800)
src/bin/auth/main.cc

index 2057b89080ff298ac2cc45bc543d63a989fad825..e90d199d0e37fa7a8f16e5701671a6626d7ef2eb 100644 (file)
@@ -256,7 +256,7 @@ main(int argc, char* argv[]) {
 
     // If we haven't registered callback for data sources, this will be just
     // no-op.
-    if (config_session) {
+    if (config_session != NULL) {
         config_session->removeRemoteConfig("data_sources");
     }