Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src appease gcc -Wuninitialized



details:   https://anonhg.NetBSD.org/src/rev/f9786143846f
branches:  trunk
changeset: 581495:f9786143846f
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jun 02 04:59:17 2005 +0000

description:
appease gcc -Wuninitialized

diffstat:

 crypto/dist/ssh/sftp-client.c |  5 +++--
 usr.bin/vi/ex/ex.c            |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r 5b4bd28e1aa5 -r f9786143846f crypto/dist/ssh/sftp-client.c
--- a/crypto/dist/ssh/sftp-client.c     Thu Jun 02 04:57:33 2005 +0000
+++ b/crypto/dist/ssh/sftp-client.c     Thu Jun 02 04:59:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sftp-client.c,v 1.23 2005/04/23 16:53:29 christos Exp $        */
+/*     $NetBSD: sftp-client.c,v 1.24 2005/06/02 04:59:17 lukem Exp $   */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm%openbsd.org@localhost>
  *
@@ -22,7 +22,7 @@
 
 #include "includes.h"
 RCSID("$OpenBSD: sftp-client.c,v 1.52 2004/11/25 22:22:14 markus Exp $");
-__RCSID("$NetBSD: sftp-client.c,v 1.23 2005/04/23 16:53:29 christos Exp $");
+__RCSID("$NetBSD: sftp-client.c,v 1.24 2005/06/02 04:59:17 lukem Exp $");
 
 #include <sys/queue.h>
 
@@ -759,6 +759,7 @@
        TAILQ_HEAD(reqhead, request) requests;
        struct request *req;
 
+       status = -1;
        TAILQ_INIT(&requests);
 
        a = do_stat(conn, remote_path, 0);
diff -r 5b4bd28e1aa5 -r f9786143846f usr.bin/vi/ex/ex.c
--- a/usr.bin/vi/ex/ex.c        Thu Jun 02 04:57:33 2005 +0000
+++ b/usr.bin/vi/ex/ex.c        Thu Jun 02 04:59:17 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ex.c,v 1.14 2005/02/12 12:53:22 aymeric Exp $  */
+/*     $NetBSD: ex.c,v 1.15 2005/06/02 05:06:40 lukem Exp $    */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -16,7 +16,7 @@
 #if 0
 static const char sccsid[] = "@(#)ex.c 10.57 (Berkeley) 10/10/96";
 #else
-__RCSID("$NetBSD: ex.c,v 1.14 2005/02/12 12:53:22 aymeric Exp $");
+__RCSID("$NetBSD: ex.c,v 1.15 2005/06/02 05:06:40 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -218,6 +218,7 @@
 
        gp = sp->gp;
        exp = EXP(sp);
+       ch = 0;         /* XXXGCC -Wuninitialized */
 
        /*
         * We always start running the command on the top of the stack.



Home | Main Index | Thread Index | Old Index