[pygobject/pygobject-3-8] gi/pygi-info.c: Avoid C99-style variable declaration



commit 957f525b9252098e31bd7a8dd5505e3d3e571761
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Jun 21 12:32:33 2013 +0800

    gi/pygi-info.c: Avoid C99-style variable declaration
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702786

 gi/pygi-info.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 02b9350..5387e7a 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -434,6 +434,7 @@ _g_arg_get_pytype_hint (PyGIBaseInfo *self)
            const char *info_name;
            PyObject *py_string;
            GIBaseInfo *iface = g_type_info_get_interface(&type_info);
+           gchar *name;
 
            info_name = g_base_info_get_name (iface);
            if (info_name == NULL) {
@@ -441,7 +442,7 @@ _g_arg_get_pytype_hint (PyGIBaseInfo *self)
                return PYGLIB_PyUnicode_FromString(g_type_tag_to_string(type_tag));
            }
 
-           gchar *name = g_strdup_printf("%s.%s",
+           name = g_strdup_printf("%s.%s",
                    g_base_info_get_namespace(iface),
                    info_name);
            g_base_info_unref(iface);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]