From 316ddc2382c8060e8a1604752ec5accbb6fd35e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 May 2014 11:25:27 +0200 Subject: [PATCH] test/run_decoder: auto-initialize struct Decoder --- test/run_decoder.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx index 6b04b859c..f33509211 100644 --- a/test/run_decoder.cxx +++ b/test/run_decoder.cxx @@ -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) {