aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorSergio Durigan Junior <sergiodj@redhat.com>2017-06-22 14:50:24 -0400
committerSergio Durigan Junior <sergiodj@redhat.com>2017-06-22 14:50:24 -0400
commitd4c6ce5b011b03c7e4a84b530cba1f9b56441131 (patch)
treee6a8115957458410e10adad5da5f6f4e067fd29b /gdb/common
parente652757bad63e4cf8c0c72df6e95c0c826f8e29d (diff)
downloadgdb-d4c6ce5b011b03c7e4a84b530cba1f9b56441131.zip
gdb-d4c6ce5b011b03c7e4a84b530cba1f9b56441131.tar.gz
gdb-d4c6ce5b011b03c7e4a84b530cba1f9b56441131.tar.bz2
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.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/environ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/common/environ.c b/gdb/common/environ.c
index 2d13957..698bda3 100644
--- a/gdb/common/environ.c
+++ b/gdb/common/environ.c
@@ -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;