mirror of
https://github.com/vgough/encfs.git
synced 2025-06-19 19:27:48 +02: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 reverseEncryption; // reverse encryption operation
|
||||||
|
|
||||||
bool idleTracking; // turn on idle monitoring of filesystem
|
bool idleTracking; // turn on idle monitoring of filesystem
|
||||||
|
|
||||||
|
FSConfig() : forceDecode(false), reverseEncryption(false), idleTracking(false) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef shared_ptr<FSConfig> FSConfigPtr;
|
typedef shared_ptr<FSConfig> FSConfigPtr;
|
||||||
|
@ -432,7 +432,9 @@ int main(int argc, char *argv[]) {
|
|||||||
keySize += it->keyLength.inc()) {
|
keySize += it->keyLength.inc()) {
|
||||||
if (!testCipherSize(it->name, keySize, blockSize, false)) {
|
if (!testCipherSize(it->name, keySize, blockSize, false)) {
|
||||||
// Run again in verbose mode, then exit with error.
|
// 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;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user