diff options
author | Mark Kettenis <kettenis@gnu.org> | 2014-02-27 21:51:08 +0100 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2014-02-27 21:51:08 +0100 |
commit | c725e7b6878220bbeac44b86a2581d74f16b497c (patch) | |
tree | 5b0122819b612993f32fcac40d902c84866f3cf3 /gdb/solib-svr4.c | |
parent | 670b46b3a90a150760d110dac4d1a85a0b94fb47 (diff) | |
download | gdb-c725e7b6878220bbeac44b86a2581d74f16b497c.zip gdb-c725e7b6878220bbeac44b86a2581d74f16b497c.tar.gz gdb-c725e7b6878220bbeac44b86a2581d74f16b497c.tar.bz2 |
Prevent compiler warning.
GCC 4.2.1 complains about first_l_name may be used uninitialized, and my brain
agrees.
gdb/ChangeLog:
* solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |