From d1867d49399c1a73f108c6bf8df8183984bbe03a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jun 2020 17:38:10 +0200 Subject: Cleanup: Remove unnecessary stores --- tests/serd_test.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/serd_test.c b/tests/serd_test.c index 696866fc..9650dfc5 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -288,13 +288,12 @@ test_strlen(void) static void test_strerror(void) { - const uint8_t* msg = NULL; - assert(!strcmp((const char*)(msg = serd_strerror(SERD_SUCCESS)), "Success")); + assert(!strcmp((const char*)(serd_strerror(SERD_SUCCESS)), "Success")); for (int i = SERD_FAILURE; i <= SERD_ERR_INTERNAL; ++i) { - msg = serd_strerror((SerdStatus)i); + const uint8_t* const msg = serd_strerror((SerdStatus)i); assert(strcmp((const char*)msg, "Success")); } - msg = serd_strerror((SerdStatus)-1); + serd_strerror((SerdStatus)-1); } static void -- cgit v1.2.1