[FYI] Fix indentation in value_has_field

Message ID 20190819184644.22175-1-tromey@adacore.com
State New
Headers show
Series
  • [FYI] Fix indentation in value_has_field
Related show

Commit Message

Tom Tromey Aug. 19, 2019, 6:46 p.m.
value_has_field had a mis-indented line.  This fixes it.

gdb/ChangeLog
2019-08-19  Tom Tromey  <tromey@adacore.com>

	* python/py-value.c (value_has_field): Fix indentation.
---
 gdb/ChangeLog         | 4 ++++
 gdb/python/py-value.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

-- 
2.20.1

Patch

diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index 0ffd0b03d1d..ede4c0e759a 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -847,7 +847,7 @@  value_has_field (struct value *v, PyObject *field)
       val_type = value_type (v);
       val_type = check_typedef (val_type);
       if (TYPE_IS_REFERENCE (val_type) || TYPE_CODE (val_type) == TYPE_CODE_PTR)
-      val_type = check_typedef (TYPE_TARGET_TYPE (val_type));
+	val_type = check_typedef (TYPE_TARGET_TYPE (val_type));
 
       type_code = TYPE_CODE (val_type);
       if ((type_code == TYPE_CODE_STRUCT || type_code == TYPE_CODE_UNION)