diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-11 12:14:09 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-04-11 12:14:09 (GMT) |
commit | 64182fe0b39870d30b08da54696c4d02e7b52bc5 (patch) | |
tree | dc4d5d2672d7fe70e9f0ed8411ca23be9df849b6 /Modules/posixmodule.c | |
parent | 7b782b61c597a989a21a22c15ee95decf997429f (diff) | |
download | cpython-64182fe0b39870d30b08da54696c4d02e7b52bc5.zip cpython-64182fe0b39870d30b08da54696c4d02e7b52bc5.tar.gz cpython-64182fe0b39870d30b08da54696c4d02e7b52bc5.tar.bz2 |
Some more changes to make code compile under a C++ compiler.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index a0a8d9a..4cd220e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -6009,7 +6009,7 @@ static PyObject * posix_putenv(PyObject *self, PyObject *args) { char *s1, *s2; - char *new; + char *newenv; PyObject *newstr; size_t len; @@ -6040,9 +6040,9 @@ posix_putenv(PyObject *self, PyObject *args) newstr = PyString_FromStringAndSize(NULL, (int)len - 1); if (newstr == NULL) return PyErr_NoMemory(); - new = PyString_AS_STRING(newstr); - PyOS_snprintf(new, len, "%s=%s", s1, s2); - if (putenv(new)) { + newenv = PyString_AS_STRING(newstr); + PyOS_snprintf(newenv, len, "%s=%s", s1, s2); + if (putenv(newenv)) { Py_DECREF(newstr); posix_error(); return NULL; |