[2/2] dmband: Initialize a variable

Andrew Talbot andrew.talbot at talbotville.com
Sat Feb 23 02:40:32 CST 2008


This independent patch prevents compiler warnings if the accompanying patch is applied.

-- Andy.
---
Changelog:
    dmband: Initialize a variable.

diff --git a/dlls/dmband/bandtrack.c b/dlls/dmband/bandtrack.c
index f85d096..92fcd53 100644
--- a/dlls/dmband/bandtrack.c
+++ b/dlls/dmband/bandtrack.c
@@ -322,6 +322,8 @@ static HRESULT IDirectMusicBandTrack_IPersistStream_ParseBandsList (LPPERSISTSTR
   IDirectMusicBand* pBand = NULL;
   DMUS_PRIVATE_BAND_ITEM_HEADER header;
 
+  memset(&header, 0, sizeof header);
+
   if (pChunk->fccID != DMUS_FOURCC_BANDS_LIST) {
     ERR_(dmfile)(": %s chunk should be a BANDS list\n", debugstr_fourcc (pChunk->fccID));
     return E_FAIL;



More information about the wine-patches mailing list