summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2005-06-07 13:34:10 +0000
committerhe <he@NetBSD.org>2005-06-07 13:34:10 +0000
commitcabcbc12ed562f34a94bb1dbe2618f24fc010d0d (patch)
tree7e93c6ac2583f8d6ae8a891791599af748255433
parent136c962ff908f5b597ecf3da011c2432347ef1d5 (diff)
Initialize a local variable to appease -Wuninitialized.
Marked with XXXGCC for sun2 (found while compiling for it). Reviewed by lukem.
-rw-r--r--usr.bin/vi/ex/ex_append.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/vi/ex/ex_append.c b/usr.bin/vi/ex/ex_append.c
index 02395b0be26..d6af790a0fe 100644
--- a/usr.bin/vi/ex/ex_append.c
+++ b/usr.bin/vi/ex/ex_append.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ex_append.c,v 1.11 2005/02/12 12:53:22 aymeric Exp $ */
+/* $NetBSD: ex_append.c,v 1.12 2005/06/07 13:34:10 he Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -16,7 +16,7 @@
#if 0
static const char sccsid[] = "@(#)ex_append.c 10.30 (Berkeley) 10/23/96";
#else
-__RCSID("$NetBSD: ex_append.c,v 1.11 2005/02/12 12:53:22 aymeric Exp $");
+__RCSID("$NetBSD: ex_append.c,v 1.12 2005/06/07 13:34:10 he Exp $");
#endif
#endif /* not lint */
@@ -98,6 +98,8 @@ ex_aci(sp, cmdp, cmd)
u_int32_t flags;
int need_newline;
+ t = NULL; /* XXXGCC -Wuninitialized [sun2] */
+
gp = sp->gp;
NEEDFILE(sp, cmdp);