summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-23 00:30:04 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-23 00:39:42 +0200
commit0e2f14014c65b4d8b30146e414579154cfa932da (patch)
tree92c53f410709bcd7d5ee654cdda60e14ff64ef7c
parentaffcf189153714f0de4d0986d18e2bc1b35c1b20 (diff)
cryptsetup: fix an OOM check
-rw-r--r--src/cryptsetup/cryptsetup-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index 137b7876d6..c7f30f6a15 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -387,7 +387,7 @@ int main(int argc, char *argv[]) {
if (k == 2 && streq(proc_uuid, device + 5)) {
free(options);
options = strdup(p);
- if (!proc_options) {
+ if (!options) {
log_oom();
goto cleanup;
}