mirror of
https://github.com/boostorg/utility.git
synced 2026-02-03 21:55:14 +01: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