aboutsummaryrefslogtreecommitdiff
path: root/iri.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-28 16:26:49 +0000
committerOmar Polo <op@omarpolo.com>2021-01-28 16:26:49 +0000
commit9a672b37122cd24931aee82617b30200637b287c (patch)
treedce1d37f704a9239fd138c6e0334107f34ffc71a /iri.c
parent35cf19e3f36688927ff28aa2b45108cda5f9a8d8 (diff)
legibility: use p[n] instead of (*(p + n))
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 f7cb627..206f106 100644
--- a/iri.c
+++ b/iri.c
@@ -48,10 +48,10 @@ sub_delimiters(int p)
static int
parse_pct_encoded(struct parser *p)
{
- if (*p->iri != '%')
+ if (p->iri[0] != '%')
return 0;
- if (!isxdigit(*(p->iri+1)) || !isxdigit(*(p->iri+2))) {
+ if (!isxdigit(p->iri[1]) || !isxdigit(p->iri[2])) {
p->err = "illegal percent-encoding";
return 0;
}