aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-07-20 06:44:46 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-07-20 06:44:46 +0000
commit0d53d750dc88e07b010a091653c571b8ecdb951e (patch)
treebd8263df7518c8bec84fb7a23022076ddc39e306
parente312f213626d64ce7e0a2506bc72efe5186b0618 (diff)
downloadbusybox-w32-0d53d750dc88e07b010a091653c571b8ecdb951e.tar.gz
busybox-w32-0d53d750dc88e07b010a091653c571b8ecdb951e.tar.bz2
busybox-w32-0d53d750dc88e07b010a091653c571b8ecdb951e.zip
Assign 'forced' before the goto to avoid a warning
git-svn-id: svn://busybox.net/trunk/busybox@8971 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/vi.c5
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
21static const char vi_Version[] = 21static 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