Commit 6a525813 authored by Jim Fulton's avatar Jim Fulton

Added 0-argument check to unpickler load method.

parent f2ac4871
/* /*
$Id: cPickle.c,v 1.28 1997/03/04 18:31:16 chris Exp $ $Id: cPickle.c,v 1.29 1997/03/04 19:41:57 jim Exp $
Copyright Copyright
...@@ -3091,6 +3091,8 @@ Unpickler_load(Unpicklerobject *self, PyObject *args) { ...@@ -3091,6 +3091,8 @@ Unpickler_load(Unpicklerobject *self, PyObject *args) {
int len; int len;
char *s; char *s;
UNLESS(PyArg_ParseTuple(args,"")) return NULL;
UNLESS(stack = PyList_New(0)) UNLESS(stack = PyList_New(0))
goto err; goto err;
...@@ -3690,7 +3692,7 @@ init_stuff(PyObject *module, PyObject *module_dict) { ...@@ -3690,7 +3692,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
void void
initcPickle() { initcPickle() {
PyObject *m, *d; PyObject *m, *d;
char *rev="$Revision: 1.28 $"; char *rev="$Revision: 1.29 $";
PyObject *format_version; PyObject *format_version;
PyObject *compatible_formats; PyObject *compatible_formats;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment