summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2012-02-17 09:38:56 +0000
committer Miodrag Milanovic <mmicko@gmail.com>2012-02-17 09:38:56 +0000
commitb6bf294ed35f5d9c0264323afd44417f035757d8 (patch)
tree99a31f578adc548940d8e7230d7bf7d048474064 /src
parent1fdead69f67e7693d5006b8cd465cbb7963b69a5 (diff)
fix from mess, visible by 32bit mingw 4.4.7 (no whatsnew)
Diffstat (limited to 'src')
-rw-r--r--src/lib/util/chd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/util/chd.c b/src/lib/util/chd.c
index 1ccf300a075..db40e7f1eb2 100644
--- a/src/lib/util/chd.c
+++ b/src/lib/util/chd.c
@@ -1259,6 +1259,10 @@ chd_error chd_file::clone_all_metadata(chd_file &source)
// iterate over metadata entries in the source
dynamic_buffer filedata;
metadata_entry metaentry;
+ metaentry.metatag = 0;
+ metaentry.length = 0;
+ metaentry.next = 0;
+ metaentry.flags = 0;
for (bool has_data = source.metadata_find(CHDMETATAG_WILDCARD, 0, metaentry); has_data; has_data = source.metadata_find(CHDMETATAG_WILDCARD, 0, metaentry, true))
{
// read the metadata item