]> granicus.if.org Git - libvpx/commitdiff
y4m_test: init members in the constructor
authorJames Zern <jzern@google.com>
Mon, 8 Aug 2016 21:27:34 +0000 (14:27 -0700)
committerJames Zern <jzern@google.com>
Mon, 8 Aug 2016 21:27:34 +0000 (14:27 -0700)
prevents use of an uninitialized value in the deconstructor should the
test fail before tmpfile_ is set.

Change-Id: I8b49fd05f0d05e055fdf653bd46983d30f466a68

test/y4m_test.cc

index 000bab684916349c7f3fe6e3a07049d2098670de..ced717a7c192e643cae4a2e9f3891b16fa142cf0 100644 (file)
@@ -138,7 +138,7 @@ INSTANTIATE_TEST_CASE_P(C, Y4mVideoSourceTest,
 
 class Y4mVideoWriteTest : public Y4mVideoSourceTest {
  protected:
-  Y4mVideoWriteTest() {}
+  Y4mVideoWriteTest() : tmpfile_(NULL) {}
 
   virtual ~Y4mVideoWriteTest() {
     delete tmpfile_;