aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node.c')
-rw-r--r--src/node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/node.c b/src/node.c
index 7a7ba0b7..fd2305f7 100644
--- a/src/node.c
+++ b/src/node.c
@@ -178,8 +178,7 @@ is_dir_sep(const char c)
SerdNode
serd_node_new_file_uri(const uint8_t* const path,
const uint8_t* const hostname,
- SerdURI* const out,
- const bool escape)
+ SerdURI* const out)
{
const size_t path_len = strlen((const char*)path);
const size_t hostname_len = hostname ? strlen((const char*)hostname) : 0;
@@ -206,7 +205,7 @@ serd_node_new_file_uri(const uint8_t* const path,
for (size_t i = 0; i < path_len; ++i) {
if (path[i] == '%') {
serd_chunk_sink("%%", 2, &chunk);
- } else if (!escape || is_uri_path_char(path[i])) {
+ } else if (is_uri_path_char(path[i])) {
serd_chunk_sink(path + i, 1, &chunk);
#ifdef _WIN32
} else if (path[i] == '\\') {