summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-05-22 13:32:29 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-05-22 13:32:29 -0400
commit786669f33160dd860121a351e15608be5598d1ae (patch)
tree7a660dff7e2a945df875fde9d7ea4a549dc40d88 /src/c
parent471a36cab64b287b12fbb2903a44e3f24b3e76ab (diff)
Prevent early clearing of context post data
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 1ca45836..d440ed47 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -600,7 +600,6 @@ void uw_reset_keep_error_message(uw_context ctx) {
ctx->cur_container = NULL;
ctx->used_transactionals = 0;
ctx->script_header = "";
- ctx->hasPostBody = 0;
ctx->queryString = NULL;
}
@@ -614,8 +613,7 @@ void uw_reset(uw_context ctx) {
if (ctx->app)
memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input));
memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input));
- ctx->used_subinputs = 0;
- ctx->isPost = 0;
+ ctx->used_subinputs = ctx->hasPostBody = ctx->isPost = 0;
}
failure_kind uw_begin_init(uw_context ctx) {