mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-24 17:39:40 +03:00
menu: Fix NULL deref bug with shift variable
This commit is contained in:
parent
4b452e69a4
commit
478b6f3806
@ -519,7 +519,7 @@ static size_t print_tree(size_t offset, size_t window, const char *shift, size_t
|
||||
goto skip_line;
|
||||
}
|
||||
if (!no_print) print("%s", shift);
|
||||
size_t cur_len = strlen(shift);
|
||||
size_t cur_len = shift ? strlen(shift) : 0;
|
||||
if (level) {
|
||||
for (size_t i = level - 1; i > 0; i--) {
|
||||
struct menu_entry *actual_parent = current_entry;
|
||||
|
Loading…
Reference in New Issue
Block a user