Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit fix uninitialized variable.



details:   https://anonhg.NetBSD.org/src/rev/cc165697de37
branches:  trunk
changeset: 544052:cc165697de37
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Mar 10 01:05:12 2003 +0000

description:
fix uninitialized variable.
grr, I want gcc-3.3

diffstat:

 lib/libedit/vi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7287a81cbb78 -r cc165697de37 lib/libedit/vi.c
--- a/lib/libedit/vi.c  Mon Mar 10 00:58:05 2003 +0000
+++ b/lib/libedit/vi.c  Mon Mar 10 01:05:12 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vi.c,v 1.12 2002/11/15 14:32:34 christos Exp $ */
+/*     $NetBSD: vi.c,v 1.13 2003/03/10 01:05:12 christos Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #if 0
 static char sccsid[] = "@(#)vi.c       8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: vi.c,v 1.12 2002/11/15 14:32:34 christos Exp $");
+__RCSID("$NetBSD: vi.c,v 1.13 2003/03/10 01:05:12 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -1054,7 +1054,7 @@
        if (wp == NULL)
                return CC_ERROR;
 
-       wsp = 0;
+       wep = wsp = 0;
        do {
                while (isspace((unsigned char)*wp))
                        wp++;



Home | Main Index | Thread Index | Old Index