[systemd-commits] src/core

Thomas H.P. Andersen phomes at kemper.freedesktop.org
Mon May 11 12:03:54 PDT 2015


 src/core/swap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 12322d4100b8bd3d85c81fa4b24692c10a8158c2
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date:   Mon May 11 21:01:51 2015 +0200

    swap: avoid null pointer dereference
    
    CID#1297436

diff --git a/src/core/swap.c b/src/core/swap.c
index 3327cd9..5f98f0b 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);
 



More information about the systemd-commits mailing list