summaryrefslogtreecommitdiff
path: root/gdb/jv-valprint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-23 22:48:44 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-23 22:48:44 +0000
commit6f4f2a25f9c02f3a3059570b3eb4b9d78c8c7918 (patch)
treea802df9a74df5953b5227b193bc26f479edb8c15 /gdb/jv-valprint.c
parent9c507b1631dad53473ebd06e79bc0371fea537ac (diff)
downloadgdb-6f4f2a25f9c02f3a3059570b3eb4b9d78c8c7918.tar.gz
Fix -Werror -Wuninitialized warnings.
Diffstat (limited to 'gdb/jv-valprint.c')
-rw-r--r--gdb/jv-valprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index 8ea67ce15fc..9ba953ee66a 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -90,7 +90,8 @@ java_value_print (value_ptr val, struct ui_file *stream, int format,
if (el_type == NULL)
{
- CORE_ADDR element, next_element;
+ CORE_ADDR element;
+ CORE_ADDR next_element = -1; /* dummy initial value */
address += JAVA_OBJECT_SIZE + 4; /* Skip object header and length. */