diff options
Diffstat (limited to 'encode.c')
-rw-r--r-- | encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encode.c b/encode.c index ae2d05e..75b7f90 100644 --- a/encode.c +++ b/encode.c @@ -82,7 +82,7 @@ uri_encode(struct uri *u) if (u->npath != 0) { for (i = 0; i < u->npath; i++) { - if ((i == 0) ? u->authority.host : 1) { + if (i != 0 || u->authority.host) { len += 1; /* / */ dup = realloc(ret, len); if (dup == NULL) { |