Parcourir la source

[trac542] avoid relying on implicit conversion from pointer to bool

JINMEI Tatuya il y a 14 ans
Parent
commit
24fd003fcc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/util/unittests/run_all.cc

+ 1 - 1
src/lib/util/unittests/run_all.cc

@@ -29,7 +29,7 @@ int
 run_all() {
     int ret = 0;
 
-    if (getenv("B10TEST_CATCH_EXCEPTION")) {
+    if (getenv("B10TEST_CATCH_EXCEPTION") != NULL) {
         try {
             ret = RUN_ALL_TESTS();
         } catch (const isc::Exception& ex) {