MEDIUM: vars: move the session variables to the session, not the stream
It's important that the session-wide variables are in the session and not
in the stream.
diff --git a/src/stream.c b/src/stream.c
index 0a38f2e..1003826 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -137,10 +137,9 @@
s->req_cap = NULL;
s->res_cap = NULL;
- /* Initialise alle the variable context even if will not use.
- * This permits to prune these context without errors.
+ /* Initialise all the variables contexts even if not used.
+ * This permits to prune these contexts without errors.
*/
- vars_init(&s->vars_sess, SCOPE_SESS);
vars_init(&s->vars_txn, SCOPE_TXN);
vars_init(&s->vars_reqres, SCOPE_REQ);
@@ -302,7 +301,6 @@
}
/* Cleanup all variable contexts. */
- vars_prune(&s->vars_sess, s);
vars_prune(&s->vars_txn, s);
vars_prune(&s->vars_reqres, s);