libc: minimal: fix realloc function
Excerpt from the manual:
If ptr is NULL, then the call is equivalent to malloc(size) [...]
Without this commit, such calls end with a BUS FAULT.
Signed-off-by:
Tomasz Gorochowik <tgorochowik@antmicro.com>
Loading
Please sign in to comment