From c565a8382a659bcd0c29243e1de7d2d02f97b4a5 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 9 Jan 2008 11:53:20 -0800 Subject: [PATCH] mapi32: Initialize several string buffers. --- dlls/mapi32/sendmail.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c index eb954a504cb..6968f7d5022 100644 --- a/dlls/mapi32/sendmail.c +++ b/dlls/mapi32/sendmail.c @@ -127,16 +127,19 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam, { to = HeapAlloc( GetProcessHeap(), 0, to_size ); if (!to) goto exit; + to[0] = 0; } if (cc_size) { cc = HeapAlloc( GetProcessHeap(), 0, cc_size ); if (!cc) goto exit; + cc[0] = 0; } if (bcc_size) { bcc = HeapAlloc( GetProcessHeap(), 0, bcc_size ); if (!bcc) goto exit; + bcc[0] = 0; } if (message->lpOriginator) -- 2.11.4.GIT