summaryrefslogtreecommitdiff
path: root/Python/errors.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-10-02 21:32:07 +0000
committerTim Peters <tim.peters@gmail.com>2001-10-02 21:32:07 +0000
commit6e7fedcc3ca6cd0960f11158416093f97cd66c69 (patch)
tree5c9357d4ad4560d48aabb483f45d0b3dfb52d89a /Python/errors.c
parent08face020ada61655c4a488841f1bf8b733cb12b (diff)
downloadcpython-6e7fedcc3ca6cd0960f11158416093f97cd66c69.tar.gz
SF bug [#467265] Compile errors on SuSe Linux on IBM/s390.
Unknown whether this fixes it. - stringobject.c, PyString_FromFormatV: don't assume that va_list is of a type that can be copied via an initializer. - errors.c, PyErr_Format: add a va_end() to balance the va_start().
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index c37d86bccc..2799cffc93 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -407,7 +407,7 @@ PyErr_Format(PyObject *exception, const char *format, ...)
string = PyString_FromFormatV(format, vargs);
PyErr_SetObject(exception, string);
Py_XDECREF(string);
-
+ va_end(vargs);
return NULL;
}