summaryrefslogtreecommitdiff
path: root/src/c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2010-12-11 15:16:04 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2010-12-11 15:16:04 -0500
commit718af1b286a8fbd3f9f97358ab3bd995684f9543 (patch)
tree83876d7a5e776b30240a4894ea70dfa58ddf120b /src/c
parentb30701c28e5a4072bc7efecc739fef12d509abc0 (diff)
minHeap option in .urp files
Diffstat (limited to 'src/c')
-rw-r--r--src/c/urweb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 392108fe..b4a15bce 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -348,7 +348,7 @@ void uw_app_init(uw_app *app) {
app->client_init();
}
-int uw_time = 0, uw_time_max = 0;
+int uw_time = 0, uw_time_max = 0, uw_min_heap = 0;
// Single-request state
@@ -461,7 +461,7 @@ uw_context uw_init() {
buf_init(uw_headers_max, &ctx->outHeaders, 0);
buf_init(uw_page_max, &ctx->page, 0);
ctx->returning_indirectly = 0;
- buf_init(uw_heap_max, &ctx->heap, 0);
+ buf_init(uw_heap_max, &ctx->heap, uw_min_heap);
buf_init(uw_script_max, &ctx->script, 1);
ctx->script.start[0] = 0;