Browse Source

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

JINMEI Tatuya 14 years ago
parent
commit
24fd003fcc
1 changed files with 1 additions and 1 deletions
  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) {