| 191 | } |
| 192 | |
| 193 | static void |
| 194 | unset_envvars (void) |
| 195 | { |
| 196 | for (idx_t i = 0; i < usvars_used; ++i) |
| 197 | { |
| 198 | devmsg ("unset: %s\n", usvars[i]); |
| 199 | |
| 200 | if (unsetenv (usvars[i])) |
| 201 | error (EXIT_CANCELED, errno, _("cannot unset %s"), |
| 202 | quote (usvars[i])); |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | /* Return a pointer to the end of a valid ${VARNAME} string, or NULL. |
| 207 | 'str' should point to the '$' character. |