mirror of
https://github.com/systemd/systemd.git
synced 2025-01-30 01:47:42 +03:00
swap: avoid null pointer dereference
CID#1297436
This commit is contained in:
parent
ff9b60f38b
commit
12322d4100
@ -359,7 +359,7 @@ static int swap_setup_unit(
|
||||
|
||||
r = unit_name_from_path(what, ".swap", &e);
|
||||
if (r < 0)
|
||||
return log_unit_error_errno(u->id, r, "Failed to generate unit name from path: %m");
|
||||
return log_error_errno(r, "Failed to generate unit name from path: %m");
|
||||
|
||||
u = manager_get_unit(m, e);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user