Forked from
Reform / reform-boundary-uboot
Source project has a limited visibility.
-
Wolfgang Denk authored
When malloc() was called before it was properly initialized (as would happen if when used before relocation to RAM) it returned random, non-NULL values, which called all kinds of difficult to debug subsequent errors. Make sure to return NULL when initialization was not done yet. Signed-off-by:
Wolfgang Denk <wd@denx.de>
Wolfgang Denk authoredWhen malloc() was called before it was properly initialized (as would happen if when used before relocation to RAM) it returned random, non-NULL values, which called all kinds of difficult to debug subsequent errors. Make sure to return NULL when initialization was not done yet. Signed-off-by:
Wolfgang Denk <wd@denx.de>