mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-13 05:19:50 +04:00
Fix NULL dereference in CLI completions (#4184)
* cli_completions: fix null dereference * cli: mark free_blocks as parallel safe * codeowners: add me to co-owners of cli
This commit is contained in:
@@ -265,6 +265,7 @@ void cli_shell_completions_render(
|
||||
}
|
||||
|
||||
} else if(action == CliShellCompletionsActionSelectNoClose) {
|
||||
if(!CommandCompletions_size(completions->variants)) return;
|
||||
// insert selection into prompt
|
||||
CliShellCompletionSegment segment = cli_shell_completions_segment(completions);
|
||||
FuriString* input = cli_shell_line_get_selected(completions->line);
|
||||
|
||||
Reference in New Issue
Block a user