diff options
author | David Robillard <d@drobilla.net> | 2020-06-21 17:38:10 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:06:24 +0200 |
commit | d1867d49399c1a73f108c6bf8df8183984bbe03a (patch) | |
tree | f19d022c2f3b4032f2b6aab8995bcfc157329eb1 /tests | |
parent | 6cba665d30cca6f1a0df3b46071e50efdb928192 (diff) | |
download | serd-d1867d49399c1a73f108c6bf8df8183984bbe03a.tar.gz serd-d1867d49399c1a73f108c6bf8df8183984bbe03a.tar.bz2 serd-d1867d49399c1a73f108c6bf8df8183984bbe03a.zip |
Cleanup: Remove unnecessary stores
Diffstat (limited to 'tests')
-rw-r--r-- | tests/serd_test.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 |