0-initializes [1] and removes a warning for missing initializer fields [1] http://en.cppreference.com/w/cpp/language/value_initialization
Showing the changes to test/invalid_file_test.cc (1 of 11 files). Show all
Unified · Split
| @@ -73,7 +73,7 @@ class InvalidFileTest · 72 unmodified lines | |||
| 73 | void RunTest() { | 73 | void RunTest() { |
| 74 | const DecodeParam input = GET_PARAM(1); | 74 | const DecodeParam input = GET_PARAM(1); |
| 75 | libvpx_test::CompressedVideoSource *video = NULL; | 75 | libvpx_test::CompressedVideoSource *video = NULL; |
| 76 | vpx_codec_dec_cfg_t cfg = {0}; | 76 | vpx_codec_dec_cfg_t cfg = vpx_codec_dec_cfg_t(); |
| 77 | cfg.threads = input.threads; | 77 | cfg.threads = input.threads; |
| 78 | const std::string filename = input.filename; | 78 | const std::string filename = input.filename; |
| 79 | 79 | ||