Commit 179054b8 authored by fbarchard@google.com's avatar fbarchard@google.com

Zero out the cpuinfo to make valgrind happy.

BUG=91
TEST=build bot
Review URL: https://webrtc-codereview.appspot.com/860015

git-svn-id: http://libyuv.googlecode.com/svn/trunk@414 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 9de8867a
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 413
Version: 414
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 413
#define LIBYUV_VERSION 414
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -139,7 +139,7 @@ static bool TestEnv(const char* name) {
LIBYUV_API
int InitCpuFlags(void) {
#if !defined(__CLR_VER) && defined(CPU_X86)
int cpu_info[4];
int cpu_info[4] = { 0, 0, 0, 0 };
__cpuid(cpu_info, 1);
cpu_info_ = ((cpu_info[3] & 0x04000000) ? kCpuHasSSE2 : 0) |
((cpu_info[2] & 0x00000200) ? kCpuHasSSSE3 : 0) |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment