aboutsummaryrefslogtreecommitdiffstats
path: root/src/canon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/canon.c')
-rw-r--r--src/canon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/canon.c b/src/canon.c
index 84d20d0c..67cf30bf 100644
--- a/src/canon.c
+++ b/src/canon.c
@@ -23,6 +23,7 @@
#include "exess/exess.h"
#include "serd/serd.h"
+#include <assert.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
@@ -182,6 +183,8 @@ serd_canon_new(const SerdWorld* const world,
const SerdSink* const target,
const SerdCanonFlags flags)
{
+ assert(target);
+
SerdCanonData* const data = (SerdCanonData*)calloc(1, sizeof(SerdCanonData));
data->world = world;