diff --git a/test/string_ref_test2.cpp b/test/string_ref_test2.cpp index 89e1cfc..174405d 100644 --- a/test/string_ref_test2.cpp +++ b/test/string_ref_test2.cpp @@ -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; }