summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2014-09-16 13:50:11 +0200
committerLukas Nykryn <lnykryn@redhat.com>2014-09-16 13:50:11 +0200
commit821b2e792159e237a1e5a1ea4bb6ae2e55d64be5 (patch)
tree68f0f1a97873e8ca98738f83fbb4788a6f47d4ce
parent85639427b3a3014adf934ee94c86d91f3aaf4cfb (diff)
gpt-auto-generator: fix typo
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 7dcbbfe497..25d868aa87 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");