Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Unified Diff: Source/modules/webaudio/AudioParam.cpp

Issue 354213002: Initialize value since calculateFinalValues may fail to do so. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/webaudio/BiquadDSPKernel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioParam.cpp
diff --git a/Source/modules/webaudio/AudioParam.cpp b/Source/modules/webaudio/AudioParam.cpp
index 110059db07e49ded231a370b933d1ee455b67ad9..a356c93bd54eb64a41543fd3fec3b4fefca2d9e5 100644
--- a/Source/modules/webaudio/AudioParam.cpp
+++ b/Source/modules/webaudio/AudioParam.cpp
@@ -96,7 +96,7 @@ bool AudioParam::smooth()
float AudioParam::finalValue()
{
- float value;
+ float value = m_value;
calculateFinalValues(&value, 1, false);
return value;
}
« no previous file with comments | « no previous file | Source/modules/webaudio/BiquadDSPKernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698