diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sord.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1062,7 +1062,7 @@ sord_new_literal_counted(SordWorld* world, SordNode key = { { str, n_bytes, n_chars, flags, SERD_LITERAL }, 1, { { 0 } } }; - key.meta.lit.datatype = datatype; + key.meta.lit.datatype = sord_node_copy(datatype); memset(key.meta.lit.lang, 0, sizeof(key.meta.lit.lang)); if (lang) { strncpy(key.meta.lit.lang, lang, sizeof(key.meta.lit.lang)); |