test/run_decoder: auto-initialize struct Decoder

This commit is contained in:
Max Kellermann 2014-05-22 11:25:27 +02:00
parent 3452625fac
commit 316ddc2382
1 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,9 @@
struct Decoder {
bool initialized;
Decoder()
:initialized(false) {}
};
void
@ -203,8 +206,6 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
decoder.initialized = false;
if (plugin->file_decode != nullptr) {
plugin->FileDecode(decoder, Path::FromFS(uri));
} else if (plugin->stream_decode != nullptr) {