Browse Source

[master] Use a temporary variable in Name::compare()

Mukund Sivaraman 12 years ago
parent
commit
0969103b09
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dns/name.cc

+ 2 - 1
src/lib/dns/name.cc

@@ -435,7 +435,8 @@ Name::toText(bool omit_final_dot) const {
 
 NameComparisonResult
 Name::compare(const Name& other) const {
-    return LabelSequence(*this).compare(LabelSequence(other));
+    LabelSequence ls(*this);
+    return (ls.compare(LabelSequence(other)));
 }
 
 bool