diff options
author | David Robillard <d@drobilla.net> | 2024-12-11 19:04:42 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-12-11 19:04:42 -0500 |
commit | abe9a7896f1f6e6a5158c0a1d4a3f39e4538c248 (patch) | |
tree | 65ae87f0adc59ad68c8d727b51fd098e08940786 /test/test_reader_writer.c | |
parent | 73f3e9a0337fc757edceda60936785c7a20f95c0 (diff) | |
download | serd-abe9a7896f1f6e6a5158c0a1d4a3f39e4538c248.tar.gz serd-abe9a7896f1f6e6a5158c0a1d4a3f39e4538c248.tar.bz2 serd-abe9a7896f1f6e6a5158c0a1d4a3f39e4538c248.zip |
Diffstat (limited to 'test/test_reader_writer.c')
-rw-r--r-- | test/test_reader_writer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_reader_writer.c b/test/test_reader_writer.c index bebda449..7302fa39 100644 --- a/test/test_reader_writer.c +++ b/test/test_reader_writer.c @@ -146,10 +146,12 @@ test_write_errors(void) static void test_writer(const char* const path) { - FILE* fd = fopen(path, "wb"); - SerdEnv* env = serd_env_new(NULL); + FILE* const fd = fopen(path, "wb"); assert(fd); + SerdEnv* const env = serd_env_new(NULL); + assert(env); + SerdWriter* writer = serd_writer_new(SERD_TURTLE, (SerdStyle)0, env, NULL, serd_file_sink, fd); assert(writer); |