fix a couple of issues found with llvm-analyze

This commit is contained in:
Lennart Poettering
2012-08-08 23:54:21 +02:00
parent c269cec334
commit 64825d3c58
7 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -374,8 +374,8 @@ int main(int argc, char *argv[]) {
if (startswith(p, "luks-"))
p += 5;
name = strappend("luks-", *i);
device = strappend("UUID=", *i);
name = strappend("luks-", p);
device = strappend("UUID=", p);
if (!name || !device) {
log_oom();