aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/reader.c b/src/reader.c
index 7e0864cc..8b74836f 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -229,9 +229,11 @@ SerdReader*
serd_reader_new(SerdWorld* const world,
const SerdSyntax syntax,
const SerdReaderFlags flags,
+ SerdEnv* const env,
const SerdSink* const sink)
{
assert(world);
+ assert(env);
assert(sink);
const size_t stack_size = world->limits.reader_stack_size;
@@ -243,6 +245,7 @@ serd_reader_new(SerdWorld* const world,
me->world = world;
me->sink = sink;
+ me->env = env;
me->stack = serd_stack_new(stack_size, serd_node_align);
me->syntax = syntax;
me->flags = flags;