diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fff616cc25..d56797e788 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-02-06 Mark Kettenis + + * proc-api.c (write_with_trace): Initialize local variable to + silence compiler warning. + 2004-02-06 Andrew Cagney * tui/tui-source.h: Do not include "defs.h". diff --git a/gdb/proc-api.c b/gdb/proc-api.c index 1e4a2dccf1..e6d30ea01f 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -459,7 +459,7 @@ static off_t lseek_offset; int write_with_trace (int fd, void *varg, size_t len, char *file, int line) { - int i; + int i = ARRAY_SIZE (rw_table) - 1; int ret; procfs_ctl_t *arg = (procfs_ctl_t *) varg;