msi: Fix use of uninitialized variable (Coverity)
Paul Vriens
paul.vriens.wine at gmail.com
Sat Jun 23 10:16:57 CDT 2007
Andrew Talbot wrote:
> This patch should fix Coverity bug CID-562. Additionally, I have pinpointed
> another suspected use-before-initialization bug, for future consideration.
>
> -- Andy.
> ---
> Changelog:
> msi: Fix use of uninitialized variable (Coverity).
>
Wouldn't it be easier to set env to NULL when declaring it and do a:
if (env) RegCloseKey(env);
Cheers,
Paul.
More information about the wine-devel
mailing list