diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2013-07-23 13:22:16 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2013-09-06 15:28:16 +0800 |
commit | f4cf05a9d4821d13bc60681fde3fd9700bb640a5 (patch) | |
tree | dc44db9c3d3a8569a7e93837f30047ec7b788d37 /src | |
parent | 5ecce9007616d8fec41fc05092a7874a40b13be3 (diff) | |
download | libva-intel-driver-f4cf05a9d4821d13bc60681fde3fd9700bb640a5.tar.gz libva-intel-driver-f4cf05a9d4821d13bc60681fde3fd9700bb640a5.tar.bz2 libva-intel-driver-f4cf05a9d4821d13bc60681fde3fd9700bb640a5.zip |
Fixes valgrind warning
"Conditional jump or move depends on uninitialised value(s)"
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
(cherry picked from commit cbd00deb6c5cad58ebd5e6ce5b89aaaded0f78a5)
Diffstat (limited to 'src')
-rw-r--r-- | src/intel_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_driver.c b/src/intel_driver.c index 74d3f18..8650dba 100644 --- a/src/intel_driver.c +++ b/src/intel_driver.c @@ -72,7 +72,7 @@ intel_driver_init(VADriverContextP ctx) { struct intel_driver_data *intel = intel_driver_data(ctx); struct drm_state * const drm_state = (struct drm_state *)ctx->drm_state; - int has_exec2, has_bsd, has_blt, has_vebox; + int has_exec2 = 0, has_bsd = 0, has_blt = 0, has_vebox = 0; assert(drm_state); assert(VA_CHECK_DRM_AUTH_TYPE(ctx, VA_DRM_AUTH_DRI1) || |