From: Angie Chiang Date: Wed, 21 Nov 2018 19:20:36 +0000 (-0800) Subject: Fix scan_build warnings in user_priv_test.cc X-Git-Tag: v1.8.0~132^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2f59340e8645149f0f4d8315d26485bce1a6949;p=libvpx Fix scan_build warnings in user_priv_test.cc BUG=webm:1575 Change-Id: I4e38f11162e0de82a730f16b387aeafd2d00e777 --- diff --git a/test/user_priv_test.cc b/test/user_priv_test.cc index 2d037699b..7bea76b0a 100644 --- a/test/user_priv_test.cc +++ b/test/user_priv_test.cc @@ -73,7 +73,7 @@ string DecodeFile(const string &filename) { CheckUserPrivateData(img->user_priv, &frame_num); // Also test ctrl_get_reference api. - struct vp9_ref_frame ref; + struct vp9_ref_frame ref = vp9_ref_frame(); // Randomly fetch a reference frame. ref.idx = rnd.Rand8() % 3; decoder.Control(VP9_GET_REFERENCE, &ref);