mirror of
https://github.com/curl/curl.git
synced 2026-08-26 09:33:33 +03:00
tool: remove dead code
Add a debug assertion to verify protocols included/excluded in a set
are always tokenized.
Follow-up to commit 677266c.
Closes #9576
This commit is contained in:
parent
91e06e687a
commit
ce30d518de
2 changed files with 2 additions and 7 deletions
|
|
@ -271,6 +271,8 @@ static size_t protoset_index(const char * const *protoset, const char *proto)
|
|||
{
|
||||
const char * const *p = protoset;
|
||||
|
||||
DEBUGASSERT(proto == proto_token(proto)); /* Ensure it is tokenized. */
|
||||
|
||||
for(; *p; p++)
|
||||
if(proto == *p)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue