From: JINMEI Tatuya Date: Wed, 5 Dec 2012 18:43:06 +0000 (-0800) Subject: [2442] updated comment for string::operator[] when it's empty X-Git-Tag: bind10-1.0.0-beta-release~39^2~3^2~1^2~2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea88e8907ab138e2fa1c5271c8a03ec53b4b08d0;p=thirdparty%2Fkea.git [2442] updated comment for string::operator[] when it's empty this is actually ensured by the C++ standard lib spec. --- diff --git a/src/lib/dns/tests/rdata_char_string_unittest.cc b/src/lib/dns/tests/rdata_char_string_unittest.cc index 83f0591280..9d236229c1 100644 --- a/src/lib/dns/tests/rdata_char_string_unittest.cc +++ b/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); }