aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_reader_writer.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c
index 6b84b1e6..515d5e5b 100644
--- a/test/test_reader_writer.c
+++ b/test/test_reader_writer.c
@@ -164,8 +164,9 @@ test_writer(const char* const path)
assert(serd_writer_end_anon(writer, NULL));
assert(serd_writer_get_env(writer) == env);
- uint8_t buf[] = {0x80, 0, 0, 0, 0};
- SerdNode s = serd_node_from_string(SERD_URI, USTR(""));
+ const uint8_t buf[] = {0x80, 0, 0, 0, 0};
+
+ SerdNode s = serd_node_from_string(SERD_URI, USTR(""));
SerdNode p = serd_node_from_string(SERD_URI, USTR("http://example.org/pred"));
SerdNode o = serd_node_from_string(SERD_LITERAL, buf);