[Python-checkins] python/dist/src/Python marshal.c,1.79,1.79.4.1

arigo at users.sourceforge.net arigo at users.sourceforge.net
Mon Dec 20 13:26:46 CET 2004


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv689/Python

Modified Files:
      Tag: release24-maint
	marshal.c 
Log Message:
Back-ported: marshal.dumps() with the new optional argument 'version' just
immediately segfaults, due to a typo!


Index: marshal.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/marshal.c,v
retrieving revision 1.79
retrieving revision 1.79.4.1
diff -u -d -r1.79 -r1.79.4.1
--- marshal.c	27 Jun 2004 16:51:46 -0000	1.79
+++ marshal.c	20 Dec 2004 12:26:43 -0000	1.79.4.1
@@ -893,7 +893,7 @@
 {
 	PyObject *x;
 	int version = Py_MARSHAL_VERSION;
-	if (!PyArg_ParseTuple(args, "O|i:dumps", &x, version))
+	if (!PyArg_ParseTuple(args, "O|i:dumps", &x, &version))
 		return NULL;
 	return PyMarshal_WriteObjectToString(x, version);
 }



More information about the Python-checkins mailing list