fix uninitialized variable.

grr, I want gcc-3.3
This commit is contained in:
christos 2003-03-10 01:05:12 +00:00
parent 5f1f221c24
commit 61c24e2c2a
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ vi_history_word(EditLine *el, int c)
if (wp == NULL)
return CC_ERROR;
wsp = 0;
wep = wsp = 0;
do {
while (isspace((unsigned char)*wp))
wp++;