Fix bug in test; thanks to AddressSanitizer for the heads-up

[SVN r83493]
This commit is contained in:
Marshall Clow 2013-03-18 20:46:53 +00:00
parent 2e4007413e
commit 9cb31aee6e

View File

@ -23,7 +23,7 @@ void ends_with ( const char *arg ) {
string_ref sr2 ( arg );
const char *p = arg;
while ( !*p ) {
while ( *p ) {
BOOST_CHECK ( sr.ends_with ( p ));
++p;
}