[Telepathy-commits] [telepathy-glib/master] glib-errors-enum-body-gen.py: explicitly 0-terminate the value array
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Jan 28 04:26:06 PST 2009
Previously, it worked only by coincidence.
---
tools/glib-errors-enum-body-gen.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tools/glib-errors-enum-body-gen.py b/tools/glib-errors-enum-body-gen.py
index 44863ee..58d6139 100644
--- a/tools/glib-errors-enum-body-gen.py
+++ b/tools/glib-errors-enum-body-gen.py
@@ -45,6 +45,7 @@ tp_error_get_type (void)
static const GEnumValue values[] = {"""
self.do_enum_values()
print """\
+ { 0 }
};
etype = g_enum_register_static ("TpError", values);
--
1.5.6.5
More information about the telepathy-commits
mailing list