summaryrefslogtreecommitdiff
path: root/contrib/apps/httpserver
diff options
context:
space:
mode:
authorWeijie Gao <[email protected]>2026-05-26 16:37:29 +0800
committerTom Rini <[email protected]>2026-06-10 14:49:43 -0600
commit1cc0442ede5444b76356bcba9aaeb11750e97b65 (patch)
tree3c96eb485dd1bfea984cb6bda03c4805e9e8f799 /contrib/apps/httpserver
parent953653936cfc9e12f52df1165080fa6c7cbae1bc (diff)
bootmenu: fix incorrect menu quitting logic
The last entry of bootmenu is always set for exiting the menu, and its command is set to an empty string. When user selects to quit the menu, bootmenu will try to run this empty command. However run_command() with empty cmd string will return failure, and the return value will be overridden to BOOTMENU_RET_FAIL, not the expected BOOTMENU_RET_QUIT. This patch adds a default success value to the cmd_ret variable, and makes sure run_command() is called only when the menu command is not empty. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Weijie Gao <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver')
0 files changed, 0 insertions, 0 deletions