Commit 316ddc23 authored by Max Kellermann's avatar Max Kellermann

test/run_decoder: auto-initialize struct Decoder

parent 3452625f
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment