diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 963aaf04..916ca691 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -653,10 +653,12 @@ MHD_connection_alloc_memory_ (struct MHD_Connection *connection, | |||
653 | { | 653 | { |
654 | struct MHD_Connection *const c = connection; /* a short alias */ | 654 | struct MHD_Connection *const c = connection; /* a short alias */ |
655 | struct MemoryPool *const pool = c->pool; /* a short alias */ | 655 | struct MemoryPool *const pool = c->pool; /* a short alias */ |
656 | size_t need_to_be_freed; /**< The required amount of additional free memory */ | 656 | size_t need_to_be_freed = 0; /**< The required amount of additional free memory */ |
657 | void *res; | 657 | void *res; |
658 | 658 | ||
659 | res = MHD_pool_try_alloc (pool, size, &need_to_be_freed); | 659 | res = MHD_pool_try_alloc (pool, |
660 | size, | ||
661 | &need_to_be_freed); | ||
660 | if (NULL != res) | 662 | if (NULL != res) |
661 | return res; | 663 | return res; |
662 | 664 | ||