Parcourir la source

[2445] do explicit check for NULL against a pointer

JINMEI Tatuya il y a 12 ans
Parent
commit
233aebcb70
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/bin/auth/main.cc

+ 1 - 1
src/bin/auth/main.cc

@@ -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");
     }