polish

parent 8ede1b20
......@@ -131,16 +131,15 @@ vmod_string_foreach(VRT_CTX, struct VPFX(taskvar_string) *va,
VRT_fail(ctx, ".foreach() out of workspace");
return;
}
v->defined = 1;
p = strtok_r(str, delim, &save);
while (p != NULL) {
v->var = p;
v->defined = 1;
VRT_call(ctx, sub);
if (VRT_handled(ctx))
break;
p = strtok_r(NULL, delim, &save);
}
v->var = NULL;
v->defined = 0;
}
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