diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-05-10 21:03:03 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2001-05-10 21:03:03 +0000 |
commit | 13e5c96c69fc9fc3b9dfff31e095f26b3531c18f (patch) | |
tree | 16e8c04a7fdf0d5b78f267ee49d9b9637d62277e | |
parent | 1ba2713e60f3ce71709665ce960fa8721d7e9ace (diff) | |
download | gdb-13e5c96c69fc9fc3b9dfff31e095f26b3531c18f.tar.gz |
2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* proc-api.c (ioctl_with_trace): Fix uninitialized variable.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/proc-api.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index df7b387823f..f7af47a5d6e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-05-10 Elena Zannoni <ezannoni@redhat.com> + + * proc-api.c (ioctl_with_trace): Fix uninitialized variable. + 2001-05-10 Fernando Nasser <fnasser@redhat.com> * MAINTAINERS: Add testsuite subdirectory co-maintainers. diff --git a/gdb/proc-api.c b/gdb/proc-api.c index d881edc302d..4cae8fd2e62 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -27,6 +27,7 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "defs.h" #include "gdbcmd.h" +#include "completer.h" #if defined (NEW_PROC_API) #define _STRUCTURED_PROC 1 @@ -219,7 +220,9 @@ static struct trans ioctl_table[] = { int ioctl_with_trace (int fd, long opcode, void *ptr, char *file, int line) { - int i, ret, arg1; + int i = 0; + int ret; + int arg1; prepare_to_trace (); |