[systemd-commits] src/gpt-auto-generator

Lukas Nykryn lnykryn at kemper.freedesktop.org
Tue Sep 16 04:50:40 PDT 2014


 src/gpt-auto-generator/gpt-auto-generator.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 821b2e792159e237a1e5a1ea4bb6ae2e55d64be5
Author: Lukas Nykryn <lnykryn at redhat.com>
Date:   Tue Sep 16 13:50:11 2014 +0200

    gpt-auto-generator: fix typo

diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 7dcbbfe..25d868a 100644
--- a/src/gpt-auto-generator/gpt-auto-generator.c
+++ b/src/gpt-auto-generator/gpt-auto-generator.c
@@ -124,7 +124,7 @@ static int add_cryptsetup(const char *id, const char *what, bool rw, char **devi
                 return log_oom();
 
         p = strjoin(arg_dest, "/", n, NULL);
-        if (!n)
+        if (!p)
                 return log_oom();
 
         f = fopen(p, "wxe");



More information about the systemd-commits mailing list