VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/DcsCfg/DcsCfgMain.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-09-26 07:42:24 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-10-17 18:17:47 +0200
commit224b1cc286122b8aca5002fec31ed0390b299403 (patch)
tree589a728a9a554361df23389350802d8871ec16f3 /DcsCfg/DcsCfgMain.c
parent5fb01149ef1cecc36b261094b304ff0654bb7ae3 (diff)
downloadVeraCrypt-DCS-224b1cc286122b8aca5002fec31ed0390b299403.tar.gz
VeraCrypt-DCS-224b1cc286122b8aca5002fec31ed0390b299403.zip
Fix various issues reported by Coverity
Diffstat (limited to 'DcsCfg/DcsCfgMain.c')
-rw-r--r--DcsCfg/DcsCfgMain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/DcsCfg/DcsCfgMain.c b/DcsCfg/DcsCfgMain.c
index 5c2ce2b..59ff730 100644
--- a/DcsCfg/DcsCfgMain.c
+++ b/DcsCfg/DcsCfgMain.c
@@ -350,8 +350,8 @@ DcsCfgMain(
res = EFI_BUFFER_TOO_SMALL;
temp = MEM_ALLOC(size);
if (temp == NULL ||
- EFI_ERROR(res = RndGetBytes(temp, size) ||
- EFI_ERROR(res = FileSave(NULL, (CHAR16*)optFile, temp, size)))
+ EFI_ERROR(res = RndGetBytes(temp, size)) ||
+ EFI_ERROR(res = FileSave(NULL, (CHAR16*)optFile, temp, size))
) {
ERR_PRINT(L"Random: %r\n", res);
}