From a8f35c2ec3264c1825412ecb1eac22192a972917 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 15 Jan 2014 16:28:08 +0400 Subject: [PATCH] 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. --- gdb/ChangeLog | 5 +++++ gdb/python/py-type.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ca36558418..5702257982b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-01-15 Joel Brobecker + + * python/py-type.c (convert_field): Add missing empty line + after declarations. + 2014-01-14 Doug Evans * symfile.h (expand_symtabs_matching): Renamed from diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index c904d3af3fe..26d01185c39 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)); -- 2.30.2