diff Modules/cStringIO.c @ 36782:2b659268a73a legacy-trunk

Silence gcc (4.0.x) warning about use of uninitialized value.
author Thomas Wouters <thomas@python.org>
date Wed, 01 Mar 2006 22:15:15 +0000
parents 9f3f87e920a6
children 48a28b35dd64
line wrap: on
line diff
--- a/Modules/cStringIO.c	Wed Mar 01 22:10:49 2006 +0000
+++ b/Modules/cStringIO.c	Wed Mar 01 22:15:15 2006 +0000
@@ -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;