From 9cb31aee6ee056fa30f9a6e64526ddb6c7fb9a60 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Mon, 18 Mar 2013 20:46:53 +0000 Subject: [PATCH] Fix bug in test; thanks to AddressSanitizer for the heads-up [SVN r83493] --- test/string_ref_test2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }