2001-05-10 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 10 May 2001 21:03:03 +0000 (21:03 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 10 May 2001 21:03:03 +0000 (21:03 +0000)
        * proc-api.c (ioctl_with_trace): Fix uninitialized variable.

gdb/ChangeLog
gdb/proc-api.c

index df7b387823fd45564f114d21c7061611566df5e3..f7af47a5d6e1203b9a8df6034cf9d13124ede418 100644 (file)
@@ -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.
index d881edc302d7ca271f9261a1d25232f4027986c9..4cae8fd2e6264f5d6ff348ef2d06b30f828a478f 100644 (file)
@@ -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 ();
 
This page took 0.030363 seconds and 4 git commands to generate.