aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uri.c b/src/uri.c
index f7d17e59..1812bb93 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -446,15 +446,15 @@ write_rel_path(SerdSink sink,
// Find the number of up references ("..") required
size_t up = 0;
- for (size_t i = last_shared_sep + 1; i < base_len; ++i) {
- if (uri_path_at(base, i) == '/') {
+ for (size_t s = last_shared_sep + 1; s < base_len; ++s) {
+ if (uri_path_at(base, s) == '/') {
++up;
}
}
// Write up references
size_t len = 0;
- for (size_t i = 0; i < up; ++i) {
+ for (size_t u = 0; u < up; ++u) {
len += sink("../", 3, stream);
}