aboutsummaryrefslogtreecommitdiffstats
path: root/src/world.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-02 14:47:14 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commitaa6b5ec5b9344bce0ea38d294aef0782c3745548 (patch)
tree0481c7a3b690a35728b0649d281e0ba3e321a428 /src/world.c
parent6076b31090176be685c30aa198edd3cebfd4fd7a (diff)
downloadserd-aa6b5ec5b9344bce0ea38d294aef0782c3745548.tar.gz
serd-aa6b5ec5b9344bce0ea38d294aef0782c3745548.tar.bz2
serd-aa6b5ec5b9344bce0ea38d294aef0782c3745548.zip
Add assertions for all non-null pointers in the public API
Diffstat (limited to 'src/world.c')
-rw-r--r--src/world.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/world.c b/src/world.c
index dcf0b6af..386d7a55 100644
--- a/src/world.c
+++ b/src/world.c
@@ -139,6 +139,8 @@ serd_world_get_blank(SerdWorld* const world)
{
#define BLANK_CHARS 12
+ assert(world);
+
char* buf = serd_node_buffer(world->blank_node);
memset(buf, 0, BLANK_CHARS + 1);