diff Python/errors.c @ 20221:abaf9ea2e560 legacy-trunk

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().
author Tim Peters <tim.peters@gmail.com>
date Tue, 02 Oct 2001 21:32:07 +0000
parents 55874d8e0dfb
children d4406fbfcb4e
line wrap: on
line diff
--- a/Python/errors.c	Tue Oct 02 21:24:57 2001 +0000
+++ b/Python/errors.c	Tue Oct 02 21:32:07 2001 +0000
@@ -407,7 +407,7 @@
 	string = PyString_FromFormatV(format, vargs);
 	PyErr_SetObject(exception, string);
 	Py_XDECREF(string);
-	
+	va_end(vargs);
 	return NULL;
 }