From 6076b31090176be685c30aa198edd3cebfd4fd7a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jul 2021 16:42:00 -0400 Subject: Make serd_env_expand_in_place() take a string view instead of a node --- src/writer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/writer.c') diff --git a/src/writer.c b/src/writer.c index 42a6ded0..dc41d522 100644 --- a/src/writer.c +++ b/src/writer.c @@ -885,7 +885,8 @@ write_curie(SerdWriter* const writer, const SerdNode* const node) (writer->flags & (SERD_WRITE_UNQUALIFIED | SERD_WRITE_UNRESOLVED)); if (!supports_abbrev(writer) || !fast) { - if ((st = serd_env_expand_in_place(writer->env, node, &prefix, &suffix))) { + const SerdStringView curie = serd_node_string_view(node); + if ((st = serd_env_expand_in_place(writer->env, curie, &prefix, &suffix))) { return w_err(writer, st, "undefined namespace prefix '%s'\n", node_str); } } -- cgit v1.2.1