Fix variable shadowing and chunk linking in gcMalloc()
commitfad7141454e0a04cf3a99c9d285b6a1d24edbd45
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 28 Apr 2009 11:08:38 +0000 (28 13:08 +0200)
committerGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Wed, 29 Apr 2009 12:15:20 +0000 (29 14:15 +0200)
tree5b50a7587c6d3840918be4843f31c673d4c24b8a
parentd1feb483cc9682bac567ec6f15693f4a37cbebdb
Fix variable shadowing and chunk linking in gcMalloc()

gcMalloc() had a local variable len, that shadowed the function parameter with
the same name, besides, it is cleaner to first check how long the remaining
free memory chunk is before writing to it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
src/alloc.c