polish

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