]> sourceware.org Git - newlib-cygwin.git/commit
libc/stdlib/nano-mallocr.c, typo in variable name
authorPekka Seppänen <pexu@sourceware.mail.kapsi.fi>
Mon, 28 Aug 2023 11:02:20 +0000 (14:02 +0300)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 29 Aug 2023 12:33:27 +0000 (14:33 +0200)
commit31eb43efa78f8bb67216eec1e7aa0be530360881
tree7c818c59c22e7946625c8efdd63ad31014100150
parentca2a4ec243627b19f0ac2c7262703f81712f3be4
libc/stdlib/nano-mallocr.c, typo in variable name

Nano malloc uses `size' in assertation whereas the correct variable would be
`s'.  Given this has existed ever since nano malloc support was added, based
on the context ("returned payload area of desired size does not exceed the
actual allocated chunk") I presume that indeed `s' (user input) and not
`r->size' (computed) shall be used.
newlib/libc/stdlib/nano-mallocr.c
This page took 0.031811 seconds and 5 git commands to generate.