mirror of
https://github.com/boostorg/utility.git
synced 2025-07-29 20:37:32 +02:00
Fix bug in test; thanks to AddressSanitizer for the heads-up
[SVN r83493]
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user