(scm_putenv): Free temporary ptr in mingw unset.
Need to ensure "e" is not unused when unsetenv is available.
"The return value is unspecified.")
#define FUNC_NAME s_scm_putenv
{
- int rv, e;
+ int rv;
char *ptr;
SCM_VALIDATE_STRING (1, str);
#else
/* On e.g. Win32 hosts putenv() called with 'name=' removes the
environment variable 'name'. */
+ int e;
ptr = scm_malloc (SCM_STRING_LENGTH (str) + 2);
strncpy (ptr, SCM_STRING_CHARS (str), SCM_STRING_LENGTH (str));
ptr[SCM_STRING_LENGTH (str)] = '=';