chiark / gitweb /
gpt-auto-generator: fix typo
authorLukas Nykryn <lnykryn@redhat.com>
Tue, 16 Sep 2014 11:50:11 +0000 (13:50 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Tue, 16 Sep 2014 11:50:11 +0000 (13:50 +0200)
src/gpt-auto-generator/gpt-auto-generator.c

index 7dcbbfe497a52b66f0bf23de38222813b63de115..25d868aa877c80a951f3c158ce767faf07a53c40 100644 (file)
@@ -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");