diff options
author | David Robillard <d@drobilla.net> | 2024-06-24 08:04:39 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-06-24 08:22:43 -0400 |
commit | 570b40e58eed90c5ec747c44e791c5321c2ea604 (patch) | |
tree | 92117aa4c2cf318d9c6e63d8630de732b4df8c03 /src/writer.c | |
parent | d2663582ca9305a36f9107cf95b951393a1563dc (diff) | |
download | serd-570b40e58eed90c5ec747c44e791c5321c2ea604.tar.gz serd-570b40e58eed90c5ec747c44e791c5321c2ea604.tar.bz2 serd-570b40e58eed90c5ec747c44e791c5321c2ea604.zip |
Clean up nonnull parameter assertions
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/writer.c b/src/writer.c index 58d7e64f..2b127d04 100644 --- a/src/writer.c +++ b/src/writer.c @@ -946,6 +946,9 @@ serd_writer_write_statement(SerdWriter* writer, const SerdNode* lang) { assert(writer); + assert(subject); + assert(predicate); + assert(object); SerdStatus st = SERD_SUCCESS; @@ -1145,7 +1148,7 @@ serd_writer_new(SerdSyntax syntax, void* stream) { assert(env); - assert(sink); + assert(ssink); const WriteContext context = WRITE_CONTEXT_NULL; SerdWriter* writer = (SerdWriter*)calloc(1, sizeof(SerdWriter)); @@ -1239,6 +1242,10 @@ serd_writer_set_prefix(SerdWriter* writer, const SerdNode* name, const SerdNode* uri) { + assert(writer); + assert(name); + assert(uri); + SerdStatus st = SERD_SUCCESS; TRY(st, serd_env_set_prefix(writer->env, name, uri)); |