mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
r15861@catbus: nickm | 2007-10-16 13:10:22 -0400
Fix example use of hash table iterators svn:r11991
This commit is contained in:
parent
0dab1a14a5
commit
2e131e31b5
@ -956,11 +956,11 @@ strmap_remove_lc(strmap_t *map, const char *key)
|
||||
* strmap_iter_get(iter, &key, &val);
|
||||
* cp = (char*)val;
|
||||
* if (!*cp) {
|
||||
* iter = strmap_iter_next_rmv(iter);
|
||||
* iter = strmap_iter_next_rmv(map,iter);
|
||||
* free(val);
|
||||
* } else {
|
||||
* for (;*cp;cp++) *cp = TOR_TOUPPER(*cp);
|
||||
* iter = strmap_iter_next(iter);
|
||||
* iter = strmap_iter_next(map,iter);
|
||||
* }
|
||||
* }
|
||||
* \endcode
|
||||
|
Loading…
Reference in New Issue
Block a user