Parcourir la source

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

Mukund Sivaraman il y a 12 ans
Parent
commit
0969103b09
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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