Silence gcc (4.0.x) warning about use of uninitialized value.
authorThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 22:15:15 +0000 (22:15 +0000)
committerThomas Wouters <thomas@python.org>
Wed, 1 Mar 2006 22:15:15 +0000 (22:15 +0000)
Modules/cStringIO.c

index 0b4faa388169d1c3cbe262e2e9cc9562ef00247c..385999fe38f8b565c6b0b161e45ef5e7186daa49 100644 (file)
@@ -173,7 +173,7 @@ IO_cread(PyObject *self, char **output, Py_ssize_t  n) {
 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;