Skip to content

Commit

Permalink
Don't use deprecated serd_uri_to_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
kamahen committed Dec 22, 2023
1 parent 16662ea commit 91ea422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libhdt/src/rdf/RDFParserSerd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ void RDFParserSerd::doParse(const char *fileName, const char *baseUri, RDFNotati

serd_reader_set_error_sink(reader, hdtserd_on_error, NULL);

const uint8_t* input=serd_uri_to_path((const uint8_t *)fileName);
uint8_t* input=serd_file_uri_parse((const uint8_t *)fileName, NULL);

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

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

serd_env_free(env);
serd_node_free(&base);
serd_free(input);
}

}
Expand Down

0 comments on commit 91ea422

Please sign in to comment.