OSDN Git Service

test: fix use of uninitialized variable
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Thu, 16 Nov 2017 23:25:21 +0000 (15:25 -0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 30 Nov 2017 19:10:49 +0000 (11:10 -0800)
commit303905b7576a246b78dddfc5d5e1a7782b08a455
tree24cd285680cfd495e73e3e979df85d4cd6d5daf8
parent8bc010fd1f05dcf0b082c44175455fe866571d85
test: fix use of uninitialized variable

Initialize VAImage variable at the point of declaration.

Since i965_DeriveImage is declared as extern in the tests,
a static scanner appears to be unable to detect that VAImage is
actually initialized by the i965_DeriveImage implementation
in the driver.  This causes it to flag it as "use of an
uninitialized variable" along the success path.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
test/i965_jpeg_decode_test.cpp
test/i965_test_image_utils.cpp