diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-07-20 06:44:46 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-07-20 06:44:46 +0000 |
commit | 165e8cbf34ee58d411d69933b90bc41450005e4d (patch) | |
tree | bd8263df7518c8bec84fb7a23022076ddc39e306 | |
parent | 5e136f269be7941c69814b1ef17b6eceafa68cba (diff) | |
download | busybox-w32-165e8cbf34ee58d411d69933b90bc41450005e4d.tar.gz busybox-w32-165e8cbf34ee58d411d69933b90bc41450005e4d.tar.bz2 busybox-w32-165e8cbf34ee58d411d69933b90bc41450005e4d.zip |
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 c5a37d750..b1d7034d4 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -19,7 +19,7 @@ | |||
19 | */ | 19 | */ |
20 | 20 | ||
21 | static const char vi_Version[] = | 21 | static const char vi_Version[] = |
22 | "$Id: vi.c,v 1.36 2004/04/14 17:51:09 andersen Exp $"; | 22 | "$Id: vi.c,v 1.37 2004/07/20 06:44:46 andersen Exp $"; |
23 | 23 | ||
24 | /* | 24 | /* |
25 | * To compile for standalone use: | 25 | * To compile for standalone use: |
@@ -693,12 +693,13 @@ static void colon(Byte * buf) | |||
693 | // :s/find/replace/ // substitute pattern "find" with "replace" | 693 | // :s/find/replace/ // substitute pattern "find" with "replace" |
694 | // :!<cmd> // run <cmd> then return | 694 | // :!<cmd> // run <cmd> then return |
695 | // | 695 | // |
696 | forced = useforce = FALSE; | ||
697 | |||
696 | if (strlen((char *) buf) <= 0) | 698 | if (strlen((char *) buf) <= 0) |
697 | goto vc1; | 699 | goto vc1; |
698 | if (*buf == ':') | 700 | if (*buf == ':') |
699 | buf++; // move past the ':' | 701 | buf++; // move past the ':' |
700 | 702 | ||
701 | forced = useforce = FALSE; | ||
702 | li = st = ch = i = 0; | 703 | li = st = ch = i = 0; |
703 | b = e = -1; | 704 | b = e = -1; |
704 | q = text; // assume 1,$ for the range | 705 | q = text; // assume 1,$ for the range |