diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-28 16:26:49 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-28 16:26:49 +0000 |
commit | 9a672b37122cd24931aee82617b30200637b287c (patch) | |
tree | dce1d37f704a9239fd138c6e0334107f34ffc71a /iri.c | |
parent | 35cf19e3f36688927ff28aa2b45108cda5f9a8d8 (diff) |
legibility: use p[n] instead of (*(p + n))
Diffstat (limited to 'iri.c')
-rw-r--r-- | iri.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |