From f365fbecc2f1ac277562cc7f8374f305dfeec3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Tue, 18 Jun 2013 00:04:27 +0000 Subject: [PATCH] =?UTF-8?q?chdman:=20-c=20would=20only=20overwrite=20the?= =?UTF-8?q?=20amount=20of=20compressions=20defined=20-=20part=20of=20the?= =?UTF-8?q?=20default=20compressions=20might=20still=20have=20been=20used?= =?UTF-8?q?=20[Oliver=20St=C3=B6neberg]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/chdman.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/chdman.c b/src/tools/chdman.c index 43c165f2c75..d84d4760010 100644 --- a/src/tools/chdman.c +++ b/src/tools/chdman.c @@ -1086,6 +1086,11 @@ static void parse_compression(const parameters_t ¶ms, chd_codec_type compres if (end == -1) break; } + + for(;index < 4; ++index) + { + compression[index] = CHD_CODEC_NONE; + } }