fix use of out-of-scope stack memory in 18dfd8f691

when calling do_menu recursively

Change-Id: I949cf1cedd80746a7e29b67804470365987046f3
This commit is contained in:
Christian Soffke 2026-01-14 17:11:50 +01:00
parent c296c2781a
commit 2e9c2dafb2

View file

@ -562,6 +562,7 @@ int do_menu(const struct menu_item_ex *start_menu, int *start_selected,
} }
#endif #endif
int msel = do_menu(context_menu, NULL, NULL, false); int msel = do_menu(context_menu, NULL, NULL, false);
title_buf = buf;
switch (msel) switch (msel)
{ {