chiark / gitweb /
fix a couple of issues found with llvm-analyze
[elogind.git] / src / cryptsetup / cryptsetup-generator.c
index c6bc65aecfa73dd6a8aa9335fbd0a51e299eaf89..386714b4fd09e8ac67bec1f6854c9328993fa11e 100644 (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();