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 7dcbbfe..25d868a 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");