mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
committed by
Lennart Poettering
parent
4a6c6d35e4
commit
6e689dc6ee
@@ -723,9 +723,11 @@ static int boot_entry_load_unified(
|
||||
if (!tmp.title)
|
||||
return log_oom();
|
||||
|
||||
tmp.sort_key = strdup(good_sort_key);
|
||||
if (!tmp.sort_key)
|
||||
return log_oom();
|
||||
if (good_sort_key) {
|
||||
tmp.sort_key = strdup(good_sort_key);
|
||||
if (!tmp.sort_key)
|
||||
return log_oom();
|
||||
}
|
||||
|
||||
if (good_version) {
|
||||
tmp.version = strdup(good_version);
|
||||
|
||||
Reference in New Issue
Block a user