[Python-3000-checkins] r65690 - python/branches/py3k/Modules/sha1module.c

martin.v.loewis python-3000-checkins at python.org
Fri Aug 15 08:27:18 CEST 2008


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)) {


More information about the Python-3000-checkins mailing list