This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/obv] Add missing empty line after declarations in "if" block (py-type.c).
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 15 Jan 2014 16:31:25 +0400
- Subject: [commit/obv] Add missing empty line after declarations in "if" block (py-type.c).
- Authentication-results: sourceware.org; auth=none
Hello,
This patch fixes a small coding-style violation...
gdb/ChangeLog:
* python/py-type.c (convert_field): Add missing empty line
after declarations.
Tested on x86_64-linux by rebuilding GDB.
Pushing momentarily...
---
gdb/python/py-type.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index c904d3a..26d0118 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -210,6 +210,7 @@ convert_field (struct type *type, int field)
if (TYPE_FIELD_NAME (type, field))
{
const char *field_name = TYPE_FIELD_NAME (type, field);
+
if (field_name[0] != '\0')
{
arg = PyString_FromString (TYPE_FIELD_NAME (type, field));
--
1.8.3.2