diff options
author | Eric Andersen | 2004-07-20 06:44:46 +0000 |
---|---|---|
committer | Eric Andersen | 2004-07-20 06:44:46 +0000 |
commit | 165e8cbf34ee58d411d69933b90bc41450005e4d (patch) | |
tree | bd8263df7518c8bec84fb7a23022076ddc39e306 | |
parent | 5e136f269be7941c69814b1ef17b6eceafa68cba (diff) | |
download | busybox-165e8cbf34ee58d411d69933b90bc41450005e4d.zip busybox-165e8cbf34ee58d411d69933b90bc41450005e4d.tar.gz |
Assign 'forced' before the goto to avoid a warning
-rw-r--r-- | editors/vi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editors/vi.c b/editors/vi.c index c5a37d7..b1d7034 100644 --- a/editors/vi.c +++ b/editors/vi.c @@ -19,7 +19,7 @@ */ static const char vi_Version[] = - "$Id: vi.c,v 1.36 2004/04/14 17:51:09 andersen Exp $"; + "$Id: vi.c,v 1.37 2004/07/20 06:44:46 andersen Exp $"; /* * To compile for standalone use: @@ -693,12 +693,13 @@ static void colon(Byte * buf) // :s/find/replace/ // substitute pattern "find" with "replace" // :!<cmd> // run <cmd> then return // + forced = useforce = FALSE; + if (strlen((char *) buf) <= 0) goto vc1; if (*buf == ':') buf++; // move past the ':' - forced = useforce = FALSE; li = st = ch = i = 0; b = e = -1; q = text; // assume 1,$ for the range |