diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-02-06 22:49:58 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-02-06 22:49:58 +0000 |
commit | 36fd43ba90f98720179ad1a811c62d730f8e9733 (patch) | |
tree | 3ef0d30802cdbd243c3cef8d758dc7e11b1b9852 /gdb/proc-api.c | |
parent | 49adcc3fd204ce732fd7b75fff2097ab3929fe86 (diff) | |
download | gdb-36fd43ba90f98720179ad1a811c62d730f8e9733.tar.gz |
* proc-api.c (write_with_trace): Initialize local variable to
silence compiler warning.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r-- | gdb/proc-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |