From 12322d4100b8bd3d85c81fa4b24692c10a8158c2 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Mon, 11 May 2015 21:01:51 +0200 Subject: swap: avoid null pointer dereference CID#1297436 --- src/core/swap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') diff --git a/src/core/swap.c b/src/core/swap.c index 3327cd958f..5f98f0b98b 100644 --- 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); -- cgit v1.2.3-54-g00ecf