diff options
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/base/criticalsection.cc | 2 | ||||
-rw-r--r-- | webrtc/test/testsupport/fileutils.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/base/criticalsection.cc b/webrtc/base/criticalsection.cc index 1f50c2355d..95b5a99d14 100644 --- a/webrtc/base/criticalsection.cc +++ b/webrtc/base/criticalsection.cc @@ -136,7 +136,7 @@ bool TryCritScope::locked() const { void GlobalLockPod::Lock() { #if !defined(WEBRTC_WIN) - const struct timespec ts_null = {0}; + const struct timespec ts_null = {0, 0}; #endif while (AtomicOps::CompareAndSwap(&lock_acquired, 0, 1)) { diff --git a/webrtc/test/testsupport/fileutils.cc b/webrtc/test/testsupport/fileutils.cc index 15abf5c517..850e471998 100644 --- a/webrtc/test/testsupport/fileutils.cc +++ b/webrtc/test/testsupport/fileutils.cc @@ -95,7 +95,7 @@ void SetExecutablePath(const std::string& path) { } bool FileExists(std::string& file_name) { - struct stat file_info = {0}; + struct stat file_info = {0, 0}; return stat(file_name.c_str(), &file_info) == 0; } @@ -192,7 +192,7 @@ std::string TempFilename(const std::string &dir, const std::string &prefix) { } bool CreateDir(std::string directory_name) { - struct stat path_info = {0}; + struct stat path_info = {0, 0}; // Check if the path exists already: if (stat(directory_name.c_str(), &path_info) == 0) { if (!S_ISDIR(path_info.st_mode)) { |