Zero-initialize buf. Fixes #3557.

This commit is contained in:
Martin v. Löwis 2008-08-15 06:27:17 +00:00
parent 1f9d907c90
commit c17517589a

View File

@ -488,6 +488,7 @@ SHA1_new(PyObject *self, PyObject *args, PyObject *kwdict)
static char *kwlist[] = {"string", NULL}; static char *kwlist[] = {"string", NULL};
SHA1object *new; SHA1object *new;
Py_buffer buf; Py_buffer buf;
buf.buf = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist, if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist,
&buf)) { &buf)) {