commit | 52622668f91c69ec718b356d2e0f8555fc88435f | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Wed Apr 30 14:19:56 2014 -0700 |
committer | John Reck <jreck@google.com> | Wed Apr 30 14:19:56 2014 -0700 |
tree | 85853f422b9fca99135bc08c2c1d5bc2be47a5c6 | |
parent | 406c51b360cb224e2cb4773eabd04d05d29793f8 [diff] |
Use resize, not reserve Reserve ensures the underlying buffer is the correct size, but iterating across it is not necessarily valid. Use resize() instead to ensure that the iterator access is valid Change-Id: I35ff5f4416bb94cf4ce2c6acf72ffd17ab3e523a