summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-22 11:25:27 +0200
committerMax Kellermann <max@duempel.org>2014-05-22 12:35:20 +0200
commit316ddc2382c8060e8a1604752ec5accbb6fd35e4 (patch)
treea2bd3318b10e5a98a472978370bcb5998f99e97b /test
parent3452625fac3f87ad957d52563f83d38858df75cb (diff)
test/run_decoder: auto-initialize struct Decoder
Diffstat (limited to 'test')
-rw-r--r--test/run_decoder.cxx5
1 files 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) {