mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
firstboot: fix crash when hostname question is skipped
This commit is contained in:
parent
30675a6ee9
commit
b66a4c157e
@ -634,7 +634,9 @@ static int prompt_hostname(int rfd) {
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
hostname_cleanup(arg_hostname);
|
||||
if (arg_hostname)
|
||||
hostname_cleanup(arg_hostname);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user