diff options
author | Wolfgang Denk <wd@denx.de> | 2010-01-15 11:20:10 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-01-15 13:26:20 +0100 |
commit | 2740544881f652566756815dda4da0bcd946e9de (patch) | |
tree | 2a76867d094fa88bdfdd6c229fa30ad448dd3123 /lib_blackfin/memcmp.S | |
parent | f098337152ca48e135448f5e7836cce938e12bc0 (diff) | |
download | u-boot-imx-2740544881f652566756815dda4da0bcd946e9de.zip u-boot-imx-2740544881f652566756815dda4da0bcd946e9de.tar.gz u-boot-imx-2740544881f652566756815dda4da0bcd946e9de.tar.bz2 |
malloc: return NULL if not initialized yet
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>
Diffstat (limited to 'lib_blackfin/memcmp.S')
0 files changed, 0 insertions, 0 deletions