]> granicus.if.org Git - libvpx/commitdiff
y4m_test: fix segfault if test files are missing
authorTristan Matthews <tmatth@videolan.org>
Fri, 22 Jan 2016 23:05:48 +0000 (18:05 -0500)
committerYaowu Xu <yaowu@google.com>
Wed, 12 Oct 2016 01:20:01 +0000 (18:20 -0700)
Change-Id: I7a04beb83095e5c0821048909f81f45be8b5eee3

test/y4m_test.cc

index c996655df13a33a727098431646db0d12593e9d0..c4755f78decd629898fdc0c96d11a393f660c503 100644 (file)
@@ -139,7 +139,7 @@ INSTANTIATE_TEST_CASE_P(C, Y4mVideoSourceTest,
 
 class Y4mVideoWriteTest : public Y4mVideoSourceTest {
  protected:
-  Y4mVideoWriteTest() {}
+  Y4mVideoWriteTest() : tmpfile_(NULL) {}
 
   virtual ~Y4mVideoWriteTest() {
     delete tmpfile_;