Simplify c_val_print_array
authorTom Tromey <tom@tromey.com>
Fri, 13 Mar 2020 23:39:52 +0000 (17:39 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 14 Mar 2020 00:03:40 +0000 (18:03 -0600)
commit7fe471e9ae8dbc61b898f7572fed31c4224a0b89
treeb20ea72a34fcc40607255d2e86f82967c1dc8601
parentd121c6ce897d34ae168f78cbdacacb109d4833e6
Simplify c_val_print_array

This slightly simplifies c_val_print_array by moving a variable to a
more inner scope and removing a dead assignment.

gdb/ChangeLog
2020-03-13  Tom Tromey  <tom@tromey.com>

* c-valprint.c (c_val_print_array): Simplify.
gdb/ChangeLog
gdb/c-valprint.c