[Python-checkins] r46839 - python/trunk/Objects/bufferobject.c

skip.montanaro python-checkins at python.org
Sun Jun 11 00:38:14 CEST 2006


Author: skip.montanaro
Date: Sun Jun 11 00:38:13 2006
New Revision: 46839

Modified:
   python/trunk/Objects/bufferobject.c
Log:
Suppress warning on MacOSX about possible use before set of proc.


Modified: python/trunk/Objects/bufferobject.c
==============================================================================
--- python/trunk/Objects/bufferobject.c	(original)
+++ python/trunk/Objects/bufferobject.c	Sun Jun 11 00:38:13 2006
@@ -33,7 +33,7 @@
 	}
 	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,


More information about the Python-checkins mailing list