mirror of https://github.com/omar-polo/gmid.git
legibility: use p[n] instead of (*(p + n))
This commit is contained in:
parent
35cf19e3f3
commit
9a672b3712
4
iri.c
4
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue