vep->state == VEP_MATCH implies vep->match != NULL

Coverity CID 1099620
parent b94e12a5
......@@ -225,6 +225,7 @@ vep_match(const struct vep_state *vep, const char *b, const char *e)
struct vep_match *vm;
const char *q, *r;
AN(vep->match);
for (vm = vep->match; vm->match != NULL; vm++) {
assert(strlen(vm->match) <= sizeof (vep->tag));
r = b;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment