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 | 8e40d29290fb9e5fc3840eb28c11164b76c37cd6 (patch) | |
tree | ae5b760b11f0fda4a0f97fc5576b999665799576 /gdb/proc-api.c | |
parent | 5a703563ae630c3074e773ab738a564b04194b04 (diff) | |
download | gdb-8e40d29290fb9e5fc3840eb28c11164b76c37cd6.zip gdb-8e40d29290fb9e5fc3840eb28c11164b76c37cd6.tar.gz gdb-8e40d29290fb9e5fc3840eb28c11164b76c37cd6.tar.bz2 |
2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* proc-api.c (ioctl_with_trace): Fix uninitialized variable.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r-- | gdb/proc-api.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c index d881edc..4cae8fd 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 (); |