mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Correct an uninitialized value
This commit is contained in:
parent
07f64d9e21
commit
89cb000aba
@ -186,7 +186,7 @@ const ConfigVar &operator>>(const ConfigVar &src, std::string &result) {
|
||||
|
||||
int readLen;
|
||||
|
||||
unsigned char tmpBuf[32];
|
||||
unsigned char tmpBuf[32] = {};
|
||||
if (length > (int)sizeof(tmpBuf)) {
|
||||
auto *ptr = new unsigned char[length];
|
||||
readLen = src.read(ptr, length);
|
||||
|
Loading…
Reference in New Issue
Block a user