summaryrefslogtreecommitdiff
path: root/src/cryptsetup
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-08 23:54:21 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-08 23:54:21 +0200
commit64825d3c589cd8742887f30acde8c57eceac2001 (patch)
tree880c0f250aff9efb4aa2c2a892ad29479a987462 /src/cryptsetup
parentc269cec334f940d82146f70d69125b1caef08baa (diff)
fix a couple of issues found with llvm-analyze
Diffstat (limited to 'src/cryptsetup')
-rw-r--r--src/cryptsetup/cryptsetup-generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptsetup/cryptsetup-generator.c b/src/cryptsetup/cryptsetup-generator.c
index c6bc65aecf..386714b4fd 100644
--- a/src/cryptsetup/cryptsetup-generator.c
+++ b/src/cryptsetup/cryptsetup-generator.c
@@ -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();