Skip to content

Commit 91ea422

Browse files
committed
Don't use deprecated serd_uri_to_path()
1 parent 16662ea commit 91ea422

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libhdt/src/rdf/RDFParserSerd.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void RDFParserSerd::doParse(const char *fileName, const char *baseUri, RDFNotati
185185

186186
serd_reader_set_error_sink(reader, hdtserd_on_error, NULL);
187187

188-
const uint8_t* input=serd_uri_to_path((const uint8_t *)fileName);
188+
uint8_t* input=serd_file_uri_parse((const uint8_t *)fileName, NULL);
189189

190190
if(fileUtil::str_ends_with(fileName,".gz")){
191191

@@ -216,6 +216,7 @@ void RDFParserSerd::doParse(const char *fileName, const char *baseUri, RDFNotati
216216

217217
serd_env_free(env);
218218
serd_node_free(&base);
219+
serd_free(input);
219220
}
220221

221222
}

0 commit comments

Comments
 (0)