fix uninitialized memory error in tests

This commit is contained in:
Valient Gough 2014-10-26 15:10:28 -07:00
parent 8d515fda07
commit 8ae9282efe
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}
}