summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2006-06-10 22:38:13 (GMT)
committerSkip Montanaro <skip@pobox.com>2006-06-10 22:38:13 (GMT)
commit9a8ae8f46b999c199bb3c75778e710baa412c888 (patch)
tree11075a6bf24664f152f67db11fe98bda08cdbecd /Objects
parent9af2b44805bb4c69e93a4ad6ce3c6ee3c2bb54cd (diff)
downloadcpython-9a8ae8f46b999c199bb3c75778e710baa412c888.zip
cpython-9a8ae8f46b999c199bb3c75778e710baa412c888.tar.gz
cpython-9a8ae8f46b999c199bb3c75778e710baa412c888.tar.bz2
Suppress warning on MacOSX about possible use before set of proc.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bufferobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c
index 55782de..588f7e2 100644
--- a/Objects/bufferobject.c
+++ b/Objects/bufferobject.c
@@ -33,7 +33,7 @@ get_buf(PyBufferObject *self, void **ptr, Py_ssize_t *size,
}
else {
Py_ssize_t count, offset;
- readbufferproc proc;
+ readbufferproc proc = 0;
PyBufferProcs *bp = self->b_base->ob_type->tp_as_buffer;
if ((*bp->bf_getsegcount)(self->b_base, NULL) != 1) {
PyErr_SetString(PyExc_TypeError,