aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-exp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ch-exp.c')
-rw-r--r--gdb/ch-exp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ch-exp.c b/gdb/ch-exp.c
index 4ce2982..6c2471f 100644
--- a/gdb/ch-exp.c
+++ b/gdb/ch-exp.c
@@ -488,7 +488,9 @@ parse_call ()
static void
parse_named_record_element ()
{
- struct stoken label = PEEK_LVAL ().sval;
+ struct stoken label;
+
+ label = PEEK_LVAL ().sval;
expect (FIELD_NAME, "expected a field name here `%s'", lexptr);
if (check_token (','))
parse_named_record_element ();