summaryrefslogtreecommitdiffstats
path: root/src/core/malloc.c
diff options
context:
space:
mode:
authorMichael Brown2006-04-25 13:54:58 +0200
committerMichael Brown2006-04-25 13:54:58 +0200
commitface774c4c1562d273a1de5dc9493925f1a21130 (patch)
treec4c7fb6733e61740624f3751a8bad1f4d93cd817 /src/core/malloc.c
parentRemoved incorrect comment; malloc() is inefficient only when the (diff)
downloadipxe-face774c4c1562d273a1de5dc9493925f1a21130.tar.gz
ipxe-face774c4c1562d273a1de5dc9493925f1a21130.tar.xz
ipxe-face774c4c1562d273a1de5dc9493925f1a21130.zip
Fixed erroneous comparison
Diffstat (limited to 'src/core/malloc.c')
-rw-r--r--src/core/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/malloc.c b/src/core/malloc.c
index d23a4eeb..bead02ed 100644
--- a/src/core/malloc.c
+++ b/src/core/malloc.c
@@ -97,7 +97,7 @@ void * alloc_memblock ( size_t size, size_t align ) {
* (which can happen only at the very end of
* the heap).
*/
- if ( ( size_t ) post_size > MIN_MEMBLOCK_SIZE ) {
+ if ( ( size_t ) post_size >= MIN_MEMBLOCK_SIZE ) {
post->size = post_size;
list_add ( &post->list, &pre->list );
}