From: Mark Kettenis Date: Fri, 6 Feb 2004 22:49:58 +0000 (+0000) Subject: * proc-api.c (write_with_trace): Initialize local variable to X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e52e2eb2a1a3526ab2033025d81e6930b369136;p=binutils-gdb.git * proc-api.c (write_with_trace): Initialize local variable to silence compiler warning. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fff616cc25c..d56797e788f 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 1e4a2dccf17..e6d30ea01fe 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;