ac14xx: fix a potential NULL deref in diagnostics
authorGerhard Sittig <gsi@denx.de>
Wed, 5 Jun 2013 12:51:05 +0000 (14:51 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 24 Jun 2013 20:24:29 +0000 (22:24 +0200)
commit186f9c130faa3e228b0db7f45de359748f78b1c3
treee61476e4d6495ff9f025b70a3035b72971f98c32
parente1208c2fe5e07f9a248cfbf9bbb212aa34ad2806
ac14xx: fix a potential NULL deref in diagnostics

getenv() immediately after setenv() may perfectly legally return NULL, so
make sure to not deference an invalid pointer when creating diagnostic output

Signed-off-by: Gerhard Sittig <gsi@denx.de>
board/ifm/ac14xx/ac14xx.c