common: console: Fix possible null pointer dereference
doing a 'cs0.active=' on the command line crashed barebox. Fix this by
not dereferencing val when it's NULL.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b90bceb commit 4ccf45db0a5f27b998a5dc7560bfb7a228bf5e96
@Alexander Shiyan Alexander Shiyan authored on 7 Jul 2013
Sascha Hauer committed on 9 Jul 2013
Showing 1 changed file
View
common/console.c