Browse Source

[master] fixed a build error on git.bind10 by using exactly the same type in ?:

JINMEI Tatuya 13 years ago
parent
commit
54c6617096
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/datasrc/tests/memory_datasrc_unittest.cc

+ 2 - 1
src/lib/datasrc/tests/memory_datasrc_unittest.cc

@@ -539,7 +539,8 @@ public:
         if (zone_finder == NULL) {
             zone_finder = &zone_finder_;
         }
-        const ConstRRsetPtr answer_sig = answer ? answer->getRRsig() : answer;
+        const ConstRRsetPtr answer_sig = answer ? answer->getRRsig() :
+            RRsetPtr(); // note we use the same type as of retval of getRRsig()
         // The whole block is inside, because we need to check the result and
         // we can't assign to FindResult
         EXPECT_NO_THROW({