summaryrefslogtreecommitdiffstats
path: root/glib/pygiochannel.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2010-04-16 12:57:15 -0400
committerDavid Malcolm <dmalcolm@redhat.com>2010-04-16 13:02:42 -0400
commit15c3b04f4257fef54ca5f7ab60012b4936d672a3 (patch)
tree7681289908d6b6c4cca916fee6d61d2c2f649909 /glib/pygiochannel.c
parentcecafa7e4809c8c2bfa77446beea8beb3a51d8dc (diff)
downloadpygobject-15c3b04f4257fef54ca5f7ab60012b4936d672a3.tar.gz
pygobject-15c3b04f4257fef54ca5f7ab60012b4936d672a3.tar.xz
pygobject-15c3b04f4257fef54ca5f7ab60012b4936d672a3.zip
Fix various selftests when building against python 3.1
Diffstat (limited to 'glib/pygiochannel.c')
-rw-r--r--glib/pygiochannel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/pygiochannel.c b/glib/pygiochannel.c
index 544d3dd..45ccf52 100644
--- a/glib/pygiochannel.c
+++ b/glib/pygiochannel.c
@@ -279,7 +279,7 @@ static PyObject*
py_io_channel_write_lines(PyGIOChannel* self, PyObject *args, PyObject *kwargs)
{
static char *kwlist[] = { "lines", NULL };
- char *buf;
+ char *buf = NULL;
Py_ssize_t buf_len;
gsize count;
GError* error = NULL;