aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-11 16:42:00 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:07 -0500
commit6076b31090176be685c30aa198edd3cebfd4fd7a (patch)
tree8e98c1dfe12ce6856ba7b338a538642c406915da /src/writer.c
parent1321fefab48b4ced8f7f628211d5c16e40efd94f (diff)
downloadserd-6076b31090176be685c30aa198edd3cebfd4fd7a.tar.gz
serd-6076b31090176be685c30aa198edd3cebfd4fd7a.tar.bz2
serd-6076b31090176be685c30aa198edd3cebfd4fd7a.zip
Make serd_env_expand_in_place() take a string view instead of a node
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c3
1 files changed, 2 insertions, 1 deletions
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);
}
}