[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 04/10: memorypool: comments minor improveme
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 04/10: memorypool: comments minor improvements |
Date: |
Mon, 17 Jun 2019 20:35:47 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 03df91fc4cb9120959945cb39a0576acdaee1a3b
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Jun 16 21:40:14 2019 +0300
memorypool: comments minor improvements
---
src/microhttpd/memorypool.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 55e997f7..27c949fc 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -344,8 +344,8 @@ MHD_pool_reallocate (struct MemoryPool *pool,
asize = ROUND_TO_ALIGN (new_size);
if ( ( (0 == asize) &&
(0 != new_size) ) || /* Value wrap, too large new_size. */
- (asize > pool->end - pool->pos) )
- return NULL; /* No space */
+ (asize > pool->end - pool->pos) ) /* Not enough space */
+ return NULL;
new_blc = pool->memory + pool->pos;
pool->pos += asize;
@@ -354,7 +354,7 @@ MHD_pool_reallocate (struct MemoryPool *pool,
{
/* Move data to new block, old block remains allocated */
memcpy (new_blc, old, old_size);
- /* Zero-out freed old block */
+ /* Zero-out old block */
memset (old, 0, old_size);
}
return new_blc;
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] branch master updated (d12ed49f -> 55dc42e6), gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 04/10: memorypool: comments minor improvements,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 05/10: MHD_pool_reallocate(): never allocate additional buffer when shrinking, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 07/10: transmit_error_response(): discard read buffer to free space for error response, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 09/10: try_ready_chunked_body(): remove useless loop, use know free memory size instead of guessing, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 01/10: memorypool: fixed MHD_pool_reset(), gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 03/10: memorypool: re-commit memory on W32 when resetting pool, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 06/10: test_long_header: use power of two for size to properly test allocations, test various buffer sizes, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 02/10: memorypool: round mmap allocation for page size, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 10/10: Optimised read buffer allocation, gnunet, 2019/06/17
- [GNUnet-SVN] [libmicrohttpd] 08/10: process_request_body(): do not move data if nothing was processed, gnunet, 2019/06/17