aboutsummaryrefslogtreecommitdiffstats
path: root/tests/serd_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r--tests/serd_test.c7
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