msi: Avoid uninitialized pointer access on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d631714ca8
commit
3ca2dfe462
|
@ -840,7 +840,7 @@ static DWORD deformat_string_internal(MSIPACKAGE *package, LPCWSTR ptr,
|
|||
UINT MSI_FormatRecordW( MSIPACKAGE* package, MSIRECORD* record, LPWSTR buffer,
|
||||
LPDWORD size )
|
||||
{
|
||||
WCHAR *format, *deformated;
|
||||
WCHAR *format, *deformated = NULL;
|
||||
UINT rc = ERROR_INVALID_PARAMETER;
|
||||
DWORD len;
|
||||
MSIRECORD *record_deformated;
|
||||
|
|
Loading…
Reference in New Issue