From f1fad96da2c531fbd3218923baa4fe806a2942d4 Mon Sep 17 00:00:00 2001 From: Gian Mario Tagliaretti Date: Sat, 8 Aug 2009 21:37:54 +0200 Subject: Bug 590063 – GFileInfo.list_attributes should accept None/NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gio/gfileinfo.override | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gfileinfo.override b/gio/gfileinfo.override index 401a590..7643bf7 100644 --- a/gio/gfileinfo.override +++ b/gio/gfileinfo.override @@ -48,13 +48,13 @@ _wrap_g_file_info_list_attributes(PyGObject *self, PyObject *kwargs) { char *kwlist[] = { "name_space", NULL}; - gchar *name_space; + gchar *name_space = NULL; gchar **names; gchar **n; PyObject *ret; if (!PyArg_ParseTupleAndKeywords(args, kwargs, - "s:gio.FileInfo.list_attributes", + "|z:gio.FileInfo.list_attributes", kwlist, &name_space)) return NULL; -- cgit