Browse Source

cleanup: constify

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1678 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 15 years ago
parent
commit
8a81157984
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/auth/sqlite3_datasrc.cc

+ 1 - 1
src/lib/auth/sqlite3_datasrc.cc

@@ -330,7 +330,7 @@ int
 Sqlite3DataSrc::findClosest(const Name& name, unsigned int* position) const {
     const unsigned int nlabels = name.getLabelCount();
     for (unsigned int i = 0; i < nlabels; ++i) {
-        Name matchname(name.split(i, nlabels - i));
+        const Name matchname(name.split(i, nlabels - i));
         const int rc = hasExactZone(matchname.toText().c_str());
         if (rc >= 0) {
             if (position != NULL) {