mirror of
https://github.com/systemd/systemd.git
synced 2026-08-10 17:14:31 +00:00
shared/bootspec: add one more assert
All callers assume that boot_entry_title() always returns something. It will, as long as it's not called on an uninitialized entry.
This commit is contained in:
@@ -92,5 +92,5 @@ int boot_config_select_special_entries(BootConfig *config);
|
||||
static inline const char* boot_entry_title(const BootEntry *entry) {
|
||||
assert(entry);
|
||||
|
||||
return entry->show_title ?: entry->title ?: entry->id;
|
||||
return ASSERT_PTR(entry->show_title ?: entry->title ?: entry->id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user