cryptsetup: fix an OOM check

This commit is contained in:
Lennart Poettering 2014-10-23 00:30:04 +02:00
parent affcf18915
commit 0e2f14014c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}