* s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
authorJim Blandy <jimb@codesourcery.com>
Thu, 8 Nov 2001 23:28:36 +0000 (23:28 +0000)
committerJim Blandy <jimb@codesourcery.com>
Thu, 8 Nov 2001 23:28:36 +0000 (23:28 +0000)
got_load_len, to placate compiler.

gdb/ChangeLog
gdb/s390-tdep.c

index ceec2f58c5a336d5fd7bc0972ffbdbcd80a14110..7a54716e2c20b2d84e7fe4235c7fc25a55312603 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-08  Jim Blandy  <jimb@redhat.com>
+
+       * s390-tdep.c (s390_get_frame_info): Initialize got_load_addr and
+       got_load_len, to placate compiler.
+
 2001-11-08  Mark Kettenis  <kettenis@gnu.org>
 
        * i386-tdep.c (i386_gdbarch_init): Fix typo.
index f0f95015f77b3c2d9f487400b0e0e2b53d149b68..97e65d9eee58ae745e2f1a419c7a665de21c0d0c 100644 (file)
@@ -229,7 +229,7 @@ s390_get_frame_info (CORE_ADDR pc, struct frame_extra_info *fextra_info,
      load instruction, and got_load_len is the length of that
      instruction.  */
   int got_state;
-  CORE_ADDR got_load_addr, got_load_len;
+  CORE_ADDR got_load_addr = 0, got_load_len = 0;
 
   const_pool_state = save_link_state = got_state = varargs_state = 0;
   frame_pointer_found = 0;