mapi32: Write-strings warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Jun 3 17:27:17 CDT 2006


Hans Leidekker wrote:
> [...] How about this patch?
>  
> -    char *address = "", *to = NULL, *cc = NULL, *bcc = NULL, *subject,
> *body;
> +    char *to = NULL, *cc = NULL, *bcc = NULL;
> +    const char *subject, *body, *address = "";
> 
>  -Hans

Because of the testing:

    if (!message) return MAPI_E_FAILURE;

and

        if (!message->lpRecips)
        {
            WARN("No recipients found\n");
            return MAPI_E_FAILURE;
        }

before

        address = message->lpRecips[i].lpszAddress;
        if (address)
        {

would it be safe to omit the initialization of "address"?

-- Andy.





More information about the wine-devel mailing list