From 89cb000aba431b359645d92f20ea7a5149234a8f Mon Sep 17 00:00:00 2001 From: Ben RUBSON Date: Wed, 11 Oct 2017 07:59:27 +0200 Subject: [PATCH] Correct an uninitialized value --- encfs/ConfigVar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encfs/ConfigVar.cpp b/encfs/ConfigVar.cpp index 4a39f00..8d3343b 100644 --- a/encfs/ConfigVar.cpp +++ b/encfs/ConfigVar.cpp @@ -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);