aboutsummaryrefslogtreecommitdiff
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
commitc65ecaf37b02a936e0d8c4074da3b5da8017e464 (patch)
tree53db9a726b3fb210cd49399a2821556bec8359af /gdb/jv-valprint.c
parentc3a27914b8158876b94fda0beaa26da202103b62 (diff)
downloadgdb-c65ecaf37b02a936e0d8c4074da3b5da8017e464.zip
gdb-c65ecaf37b02a936e0d8c4074da3b5da8017e464.tar.gz
gdb-c65ecaf37b02a936e0d8c4074da3b5da8017e464.tar.bz2
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 8ea67ce..9ba953e 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. */