Update comment on gdb_environ::unset
gdb_environ::unset iterates using '.end () - 1' now, instead of '.cend () - 1'. This obvious patch updates the comment. gdb/ChangeLog: 2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com> * common/environ.c (gdb_environ::unset): Update comment.
This commit is contained in:
parent
e652757bad
commit
d4c6ce5b01
@ -1,3 +1,7 @@
|
||||
2017-06-22 Sergio Durigan Junior <sergiodj@redhat.com>
|
||||
|
||||
* common/environ.c (gdb_environ::unset): Update comment.
|
||||
|
||||
2017-06-22 Alan Hayward <alan.hayward@arm.com>
|
||||
|
||||
* python/py-unwind.c (pyuw_sniffer): Allocate space for
|
||||
|
@ -114,7 +114,7 @@ gdb_environ::unset (const char *var)
|
||||
{
|
||||
size_t len = strlen (var);
|
||||
|
||||
/* We iterate until '.cend () - 1' because the last element is
|
||||
/* We iterate until '.end () - 1' because the last element is
|
||||
always NULL. */
|
||||
for (std::vector<char *>::iterator el = m_environ_vector.begin ();
|
||||
el != m_environ_vector.end () - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user