diff --git a/test/format-impl-test.cc b/test/format-impl-test.cc index b5d92227..a8994bc0 100644 --- a/test/format-impl-test.cc +++ b/test/format-impl-test.cc @@ -62,7 +62,8 @@ TEST(FormatTest, StrError) { char *message = 0; char buffer[BUFFER_SIZE]; EXPECT_ASSERT(fmt::safe_strerror(EDOM, message = 0, 0), "invalid buffer"); - EXPECT_ASSERT(fmt::safe_strerror(EDOM, message = buffer, 0), "invalid buffer"); + EXPECT_ASSERT(fmt::safe_strerror(EDOM, message = buffer, 0), + "invalid buffer"); buffer[0] = 'x'; #if defined(_GNU_SOURCE) && !defined(__COVERITY__) // Use invalid error code to make sure that safe_strerror returns an error