martin.v.loewis
2008-08-15 06:27:18 UTC
Author: martin.v.loewis
Date: Fri Aug 15 08:27:17 2008
New Revision: 65690
Log:
Zero-initialize buf. Fixes #3557.
Modified:
python/branches/py3k/Modules/sha1module.c
Modified: python/branches/py3k/Modules/sha1module.c
==============================================================================
--- python/branches/py3k/Modules/sha1module.c (original)
+++ python/branches/py3k/Modules/sha1module.c Fri Aug 15 08:27:17 2008
@@ -488,6 +488,7 @@
static char *kwlist[] = {"string", NULL};
SHA1object *new;
Py_buffer buf;
+ buf.buf = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist,
&buf)) {
Date: Fri Aug 15 08:27:17 2008
New Revision: 65690
Log:
Zero-initialize buf. Fixes #3557.
Modified:
python/branches/py3k/Modules/sha1module.c
Modified: python/branches/py3k/Modules/sha1module.c
==============================================================================
--- python/branches/py3k/Modules/sha1module.c (original)
+++ python/branches/py3k/Modules/sha1module.c Fri Aug 15 08:27:17 2008
@@ -488,6 +488,7 @@
static char *kwlist[] = {"string", NULL};
SHA1object *new;
Py_buffer buf;
+ buf.buf = NULL;
if (!PyArg_ParseTupleAndKeywords(args, kwdict, "|s*:new", kwlist,
&buf)) {