Initalize pointer in mapi_get_header
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 19 Nov 2018 10:05:16 +0000 (11:05 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 19 Nov 2018 10:05:16 +0000 (11:05 +0100)
* src/mapihelp.cpp (mapi_get_header): Initialize stream.

--
This would probably have avoided:

GnuPG-Bug-Id: T4262

src/mapihelp.cpp

index f259b98..4a1d532 100644 (file)
@@ -493,7 +493,7 @@ mapi_get_header (LPMESSAGE message)
 {
   TSTART;
   HRESULT hr;
-  LPSTREAM stream;
+  LPSTREAM stream = nullptr;
   ULONG bRead;
   std::string ret;