[pygobject] gi/pygi-info.c: Avoid C99-style variable declaration
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] gi/pygi-info.c: Avoid C99-style variable declaration
- Date: Fri, 21 Jun 2013 05:21:56 +0000 (UTC)
commit 5e3ab0bb974cc785659666b871d795730b4f06b3
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 3e8fcb8..c8dfb2b 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -427,6 +427,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) {
@@ -434,7 +435,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]