diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/solib-svr4.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a8fc0c..c99510c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2014-02-27 Mark Kettenis <kettenis@gnu.org> + * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0. + +2014-02-27 Mark Kettenis <kettenis@gnu.org> + * sparc-nat.c (sparc_xfer_wcookie): Always use process ID. 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com> diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 6c4dff7..4c94f9f 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1306,7 +1306,7 @@ static int svr4_read_so_list (CORE_ADDR lm, CORE_ADDR prev_lm, struct so_list ***link_ptr_ptr, int ignore_first) { - CORE_ADDR first_l_name; + CORE_ADDR first_l_name = 0; CORE_ADDR next_lm; for (; lm != 0; prev_lm = lm, lm = next_lm) |