Skip to content
Snippets Groups Projects
Commit e491a71e authored by Peter Tyser's avatar Peter Tyser Committed by Wolfgang Denk
Browse files

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: default avatarPeter Tyser <ptyser@xes-inc.com>
parent 16d1c107
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment