aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-01-15 16:28:08 +0400
committerJoel Brobecker <brobecker@adacore.com>2014-01-15 16:32:05 +0400
commita8f35c2ec3264c1825412ecb1eac22192a972917 (patch)
treee4f0fd0e538756ab95563f957e935d893aa3b779 /gdb
parentdcf106f37de996b7d7eb568382fbc9f403804174 (diff)
downloadgdb-a8f35c2ec3264c1825412ecb1eac22192a972917.zip
gdb-a8f35c2ec3264c1825412ecb1eac22192a972917.tar.gz
gdb-a8f35c2ec3264c1825412ecb1eac22192a972917.tar.bz2
Add missing empty line after declarations in "if" block (py-type.c).
This patch fixes a small coding-style violation... gdb/ChangeLog: * python/py-type.c (convert_field): Add missing empty line after declarations.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/py-type.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6ca3655..5702257 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-15 Joel Brobecker <brobecker@adacore.com>
+
+ * python/py-type.c (convert_field): Add missing empty line
+ after declarations.
+
2014-01-14 Doug Evans <dje@google.com>
* symfile.h (expand_symtabs_matching): Renamed from
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));