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

Unified Diff: media/midi/midi_manager_alsa.cc

Issue 1086693004: [gcc 4.x] Initialize web_port_index to 0 to fix build error while using GCC 4.x toolchain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_alsa.cc
diff --git a/media/midi/midi_manager_alsa.cc b/media/midi/midi_manager_alsa.cc
index b6ce3f9dfb1bd324766d1ba4220866e547201ebc..3db6955c1ffcb60f510529bf0433399359da6ab2 100644
--- a/media/midi/midi_manager_alsa.cc
+++ b/media/midi/midi_manager_alsa.cc
@@ -446,7 +446,7 @@ MidiManagerAlsa::MidiPortState::MidiPortState()
uint32 MidiManagerAlsa::MidiPortState::Insert(scoped_ptr<MidiPort> port) {
// Add the web midi index.
- uint32 web_port_index;
+ uint32 web_port_index = 0;
switch (port->type()) {
case MidiPort::Type::kInput:
web_port_index = num_input_ports_++;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698