[Python-checkins] r42749 - python/trunk/Modules/cStringIO.c
thomas.wouters
python-checkins at python.org
Wed Mar 1 23:15:15 CET 2006
Author: thomas.wouters
Date: Wed Mar 1 23:15:15 2006
New Revision: 42749
Modified:
python/trunk/Modules/cStringIO.c
Log:
Silence gcc (4.0.x) warning about use of uninitialized value.
Modified: python/trunk/Modules/cStringIO.c
==============================================================================
--- python/trunk/Modules/cStringIO.c (original)
+++ python/trunk/Modules/cStringIO.c Wed Mar 1 23:15:15 2006
@@ -173,7 +173,7 @@
static PyObject *
IO_read(IOobject *self, PyObject *args) {
Py_ssize_t n = -1;
- char *output;
+ char *output = NULL;
UNLESS (PyArg_ParseTuple(args, "|n:read", &n)) return NULL;
More information about the Python-checkins
mailing list