Update comment on gdb_environ::unset
authorSergio Durigan Junior <sergiodj@redhat.com>
Thu, 22 Jun 2017 18:50:24 +0000 (14:50 -0400)
committerSergio Durigan Junior <sergiodj@redhat.com>
Thu, 22 Jun 2017 18:50:24 +0000 (14:50 -0400)
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.

gdb/ChangeLog
gdb/common/environ.c

index bf9e08d1d814ae6774cdbb7ce962c5839fc1edf9..95010fc6129189a01f08c709e5f96fa3aa696470 100644 (file)
@@ -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
index 2d1395719b719bf408689ca20a4b9b74b7bda6cb..698bda3ac12f89535b59bee290d7b2012822970c 100644 (file)
@@ -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;
This page took 0.029178 seconds and 4 git commands to generate.