From: Thomas Wouters Date: Wed, 1 Mar 2006 22:15:15 +0000 (+0000) Subject: Silence gcc (4.0.x) warning about use of uninitialized value. X-Git-Tag: v2.5a0~422 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f86d1e810d5827c46f3d7fc519e308e310406941;p=thirdparty%2FPython%2Fcpython.git Silence gcc (4.0.x) warning about use of uninitialized value. --- diff --git a/Modules/cStringIO.c b/Modules/cStringIO.c index 0b4faa388169..385999fe38f8 100644 --- a/Modules/cStringIO.c +++ b/Modules/cStringIO.c @@ -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;