Browse Source

[2442] updated comment for string::operator[] when it's empty

this is actually ensured by the C++ standard lib spec.
JINMEI Tatuya 12 years ago
parent
commit
ea88e8907a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/tests/rdata_char_string_unittest.cc

+ 1 - 1
src/lib/dns/tests/rdata_char_string_unittest.cc

@@ -52,7 +52,7 @@ protected:
 MasterToken::StringRegion
 createStringRegion(const std::string& str) {
     MasterToken::StringRegion region;
-    region.beg = &str[0];       // note this works even if str is empty
+    region.beg = &str[0]; // note std ensures this works even if str is empty
     region.len = str.size();
     return (region);
 }