projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f80bda8
)
* proc-api.c (write_with_trace): Initialize local variable to
author
Mark Kettenis
<kettenis@gnu.org>
Fri, 6 Feb 2004 22:49:58 +0000
(22:49 +0000)
committer
Mark Kettenis
<kettenis@gnu.org>
Fri, 6 Feb 2004 22:49:58 +0000
(22:49 +0000)
silence compiler warning.
gdb/ChangeLog
patch
|
blob
|
history
gdb/proc-api.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index fff616cc25cee8e0e61e0e30f156797f2271e66b..d56797e788feed00233c0335205267424a04ba24 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-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".
diff --git
a/gdb/proc-api.c
b/gdb/proc-api.c
index 1e4a2dccf170e9a6f605c5805341cb3958176eae..e6d30ea01fe2e99dffca8d4c883f5376b8451171 100644
(file)
--- 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;