Commit 8ab29a0d authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Polish

parent 2caefd58
...@@ -492,8 +492,8 @@ vmod_get_string(VRT_CTX, struct vmod_priv *priv) ...@@ -492,8 +492,8 @@ vmod_get_string(VRT_CTX, struct vmod_priv *priv)
{ {
struct cookie *curr; struct cookie *curr;
struct vsb output[1]; struct vsb output[1];
char *res;
struct vmod_cookie *vcp = cobj_get(priv); struct vmod_cookie *vcp = cobj_get(priv);
const char *sep = "", *res;
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(ctx->ws, WS_MAGIC); CHECK_OBJ_NOTNULL(ctx->ws, WS_MAGIC);
...@@ -503,9 +503,8 @@ vmod_get_string(VRT_CTX, struct vmod_priv *priv) ...@@ -503,9 +503,8 @@ vmod_get_string(VRT_CTX, struct vmod_priv *priv)
CHECK_OBJ_NOTNULL(curr, VMOD_COOKIE_ENTRY_MAGIC); CHECK_OBJ_NOTNULL(curr, VMOD_COOKIE_ENTRY_MAGIC);
AN(curr->name); AN(curr->name);
AN(curr->value); AN(curr->value);
VSB_printf(output, "%s%s=%s;", VSB_printf(output, "%s%s=%s;", sep, curr->name, curr->value);
(curr == VTAILQ_FIRST(&vcp->cookielist)) ? "" : " ", sep = " ";
curr->name, curr->value);
} }
res = WS_VSB_finish(output, ctx->ws, NULL); res = WS_VSB_finish(output, ctx->ws, NULL);
if (res == NULL) if (res == NULL)
......
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