chiark
/
gitweb
/
~ian
/
stressapptest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
880fb47
)
Fix uninitialized variable
author
Nick Sanders
<nsanders@chromium.org>
Tue, 31 Jan 2017 22:11:21 +0000
(14:11 -0800)
committer
Nick Sanders
<nsanders@chromium.org>
Tue, 31 Jan 2017 22:11:21 +0000
(14:11 -0800)
channels_ could be used uninitialized, and is not guaranteed to default
to zero.
crbug.com/686830
src/os.cc
patch
|
blob
|
history
diff --git
a/src/os.cc
b/src/os.cc
index 7c4e3d132c5149f1f1ca611577e61e4cab4a1f0f..a792c14ba193120dc48feecf19b72058823a5ba9 100644
(file)
--- a/
src/os.cc
+++ b/
src/os.cc
@@
-63,6
+63,7
@@
OsLayer::OsLayer() {
dynamic_mapped_shmem_ = false;
mmapped_allocation_ = false;
shmid_ = 0;
+ channels_ = NULL;
time_initialized_ = 0;