diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-12 18:49:56 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-10-12 20:13:46 +0200 |
commit | 0ea6495717a3245d1da079b5d9570a6cf776ef1a (patch) | |
tree | b4cb44dbdb218fd8efc063d9f420a5f12a6ab994 /util.c | |
parent | a1516cb7869a0dd99ebaacf846ad4161f2b9b9a2 (diff) |
remove unneeded check for NUL terminator
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,8 +24,8 @@ parseuri(const char *s, struct uri *u, int rel) p += 2; /* skip "//" */ } else { /* protocol part */ - for (p = s; *p && (isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || - *p == '+' || *p == '-' || *p == '.'); p++) + for (p = s; isalpha((unsigned char)*p) || isdigit((unsigned char)*p) || + *p == '+' || *p == '-' || *p == '.'; p++) ; if (!strncmp(p, "://", 3)) { if ((size_t)(p - s) >= sizeof(u->proto)) |