* proc-api.c (write_with_trace): Initialize local variable to
authorMark Kettenis <kettenis@gnu.org>
Fri, 6 Feb 2004 22:49:58 +0000 (22:49 +0000)
committerMark Kettenis <kettenis@gnu.org>
Fri, 6 Feb 2004 22:49:58 +0000 (22:49 +0000)
silence compiler warning.

gdb/ChangeLog
gdb/proc-api.c

index fff616cc25cee8e0e61e0e30f156797f2271e66b..d56797e788feed00233c0335205267424a04ba24 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-06  Mark Kettenis  <kettenis@gnu.org>
+
+       * proc-api.c (write_with_trace): Initialize local variable to
+       silence compiler warning.
+
 2004-02-06  Andrew Cagney  <cagney@redhat.com>
 
        * tui/tui-source.h: Do not include "defs.h".
index 1e4a2dccf170e9a6f605c5805341cb3958176eae..e6d30ea01fe2e99dffca8d4c883f5376b8451171 100644 (file)
@@ -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;