Fix minor errors

- undefined variable
- properly closinf file descriptorif totpology not detected
- fix IV mode to test run on RHEL5

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@201 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
Milan Broz
2010-04-16 14:51:09 +00:00
parent 566f48f7a4
commit 17c87c1148
3 changed files with 5 additions and 5 deletions

View File

@@ -459,7 +459,7 @@ static int action_luksRemoveKey(int arg)
static int _action_luksAddKey_useMK()
{
int r = -EINVAL, keysize;
int r = -EINVAL, keysize = 0;
char *key = NULL;
struct crypt_device *cd = NULL;