shithub: libvpx

Download patch

ref: 9e9722bc79656b5b5bec914ba611f5d65c1212e0
parent: cfd92dab18639c7f1198393ce04613e6d2b126eb
author: James Zern <[email protected]>
date: Mon Aug 8 10:27:34 EDT 2016

y4m_test: init members in the constructor

prevents use of an uninitialized value in the deconstructor should the
test fail before tmpfile_ is set.

Change-Id: I8b49fd05f0d05e055fdf653bd46983d30f466a68

--- a/test/y4m_test.cc
+++ b/test/y4m_test.cc
@@ -138,7 +138,7 @@
 
 class Y4mVideoWriteTest : public Y4mVideoSourceTest {
  protected:
-  Y4mVideoWriteTest() {}
+  Y4mVideoWriteTest() : tmpfile_(NULL) {}
 
   virtual ~Y4mVideoWriteTest() {
     delete tmpfile_;