summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2004-12-20 12:26:43 (GMT)
committerArmin Rigo <arigo@tunes.org>2004-12-20 12:26:43 (GMT)
commit21905e3e28c0b0c0e299adfc6048a7aee3cb8e33 (patch)
treeb94255f9e01c6d285fe28bd27f2b8e32662d19f2 /Python/marshal.c
parented92affaaaa65bca5e3d5c8cee803854ea5928a5 (diff)
downloadcpython-21905e3e28c0b0c0e299adfc6048a7aee3cb8e33.zip
cpython-21905e3e28c0b0c0e299adfc6048a7aee3cb8e33.tar.gz
cpython-21905e3e28c0b0c0e299adfc6048a7aee3cb8e33.tar.bz2
Back-ported: marshal.dumps() with the new optional argument 'version' just
immediately segfaults, due to a typo!
Diffstat (limited to 'Python/marshal.c')
-rw-r--r--Python/marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index 590e1ca..0ab0597 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -893,7 +893,7 @@ marshal_dumps(PyObject *self, PyObject *args)
{
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);
}