chiark / gitweb /
gpt-auto-generator: fix typo
[elogind.git] / 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");