projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff9b60f
)
swap: avoid null pointer dereference
author
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 11 May 2015 19:01:51 +0000
(21:01 +0200)
committer
Thomas Hindoe Paaboel Andersen
<phomes@gmail.com>
Mon, 11 May 2015 19:03:50 +0000
(21:03 +0200)
CID#
1297436
src/core/swap.c
patch
|
blob
|
history
diff --git
a/src/core/swap.c
b/src/core/swap.c
index 3327cd958f14bcf1e146135ca0a52ba41bfad046..5f98f0b98bedd54b59414f1c6b91f2169043c3cd 100644
(file)
--- a/
src/core/swap.c
+++ b/
src/core/swap.c
@@
-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);