mirror of
https://github.com/vgough/encfs.git
synced 2025-01-11 08:28:21 +01:00
fix uninitialized memory error in tests
This commit is contained in:
parent
8d515fda07
commit
8ae9282efe
@ -118,6 +118,8 @@ struct FSConfig {
|
||||
bool reverseEncryption; // reverse encryption operation
|
||||
|
||||
bool idleTracking; // turn on idle monitoring of filesystem
|
||||
|
||||
FSConfig() : forceDecode(false), reverseEncryption(false), idleTracking(false) {}
|
||||
};
|
||||
|
||||
typedef shared_ptr<FSConfig> FSConfigPtr;
|
||||
|
@ -432,7 +432,9 @@ int main(int argc, char *argv[]) {
|
||||
keySize += it->keyLength.inc()) {
|
||||
if (!testCipherSize(it->name, keySize, blockSize, false)) {
|
||||
// Run again in verbose mode, then exit with error.
|
||||
testCipherSize(it->name, keySize, blockSize, true);
|
||||
if (testCipherSize(it->name, keySize, blockSize, true)) {
|
||||
cerr << "Inconsistent test results!\n";
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user