mirror of
https://github.com/systemd/systemd.git
synced 2024-11-24 02:33:36 +08:00
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);
|
||||
|
Loading…
Reference in New Issue
Block a user