[PATCH v2] common/command.c: Avoid NULL pointer use in cmd_auto_complete
Simon Glass
sjg at chromium.org
Sat May 16 15:28:40 CEST 2026
On 2026-05-15T20:47:30, Adam Lackorzynski <adam at l4re.org> wrote:
> common/command.c: Avoid NULL pointer use in cmd_auto_complete
>
> Avoid using ps_prompt having a NULL pointer. For that, use the same
> approach as in uboot_cli_readline().
>
> Suggested-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Adam Lackorzynski <adam at l4re.org>
>
> common/command.c | 14 +++++++++-----
> 1 file changed, 9 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list