aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-15 15:21:51 +0000
committerOmar Polo <op@omarpolo.com>2021-01-15 15:21:51 +0000
commitf7b816dc398efba2fb1cd4e2982ee3b23eed624f (patch)
tree308a24030716c151036c01d0acea0efdf5d4c0ef /iri.c
parentdafb57b8af432d800219a8e17900e1ac56a65c14 (diff)
style
Diffstat (limited to 'iri.c')
-rw-r--r--iri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iri.c b/iri.c
index d64afe8..1e08e0f 100644
--- a/iri.c
+++ b/iri.c
@@ -97,12 +97,12 @@ parse_scheme(struct parser *p)
}
*p->iri = '\0';
- if (*(++p->iri) != '/' || *(++p->iri) != '/') {
+ if (p->iri[1] != '/' || p->iri[2] != '/') {
p->err = "invalid marker after scheme";
return 0;
}
- p->iri++;
+ p->iri += 3;
return 1;
}