]> git.sur5r.net Git - u-boot/commit
Check for NULL prompt in readline_into_buffer()
authorPeter Tyser <ptyser@xes-inc.com>
Sun, 25 Oct 2009 20:12:52 +0000 (15:12 -0500)
committerWolfgang Denk <wd@denx.de>
Tue, 27 Oct 2009 19:58:25 +0000 (20:58 +0100)
commite491a71e578e93bd3b2f8f20d8ef8f111c98010d
treee4c068044178bf286f8d5c9fd4e216b5be53f22c
parent16d1c10783660f3fdbc3c19141f42f3b0d1834d3
Check for NULL prompt in readline_into_buffer()

Previously, passing readline() or readline_into_buffer() a NULL 'prompt'
parameter would result in puts() printing garbage when
CONFIG_CMDLINE_EDITING was enabled.

Note that no board currently triggers this bug.  Enabling
CONFIG_CMDLINE_EDITING on some boards (eg bab7xx) would result in
the bug appearing.  This change is only intended to prevent someone
from running into this issue in the future.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
common/main.c