mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Fix bug in test; thanks to AddressSanitizer for the heads-up
[SVN r83493]
This commit is contained in:
parent
2e4007413e
commit
9cb31aee6e
@ -23,7 +23,7 @@ void ends_with ( const char *arg ) {
|
|||||||
string_ref sr2 ( arg );
|
string_ref sr2 ( arg );
|
||||||
const char *p = arg;
|
const char *p = arg;
|
||||||
|
|
||||||
while ( !*p ) {
|
while ( *p ) {
|
||||||
BOOST_CHECK ( sr.ends_with ( p ));
|
BOOST_CHECK ( sr.ends_with ( p ));
|
||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user