From d83925d546523086f6fa9e8e3ad6b47131eec1d5 Mon Sep 17 00:00:00 2001 From: "R. Belmont" Date: Sun, 22 Jan 2012 19:42:24 +0000 Subject: [PATCH] fix compile on PPC OS X (nw) --- src/lib/util/chd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/util/chd.c b/src/lib/util/chd.c index 3ee971525ed..ccc5c058d3c 100644 --- a/src/lib/util/chd.c +++ b/src/lib/util/chd.c @@ -2074,6 +2074,9 @@ static chd_error hunk_write_from_memory(chd_file *chd, UINT32 hunknum, const UIN chd->maxhunk = hunknum; /* first compute the CRC of the original data */ + newentry.flags = 0; + newentry.length = 0; + newentry.offset = 0; newentry.crc = 0; if (src != NULL) newentry.crc = crc32(0, &src[0], chd->header.hunkbytes);