summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-04-21 21:28:02 +0000
committerRoland McGrath <roland@redhat.com>1994-04-21 21:28:02 +0000
commitb2522ec31937682d80a1ea11c94ab5daba6704bf (patch)
treecc80ae325d08ad7debc172031ef59b71d87ca1b0
parent117d4e0f367ebe2423ef7bbbacd3a1b53c76a936 (diff)
downloadgunmake-b2522ec31937682d80a1ea11c94ab5daba6704bf.tar.gz
(chop_commands): Fix braino in last change (failed to initialize IDX for
loop).
-rw-r--r--commands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands.c b/commands.c
index 67e59b4..7544e51 100644
--- a/commands.c
+++ b/commands.c
@@ -206,6 +206,7 @@ chop_commands (cmds)
idx = strlen (cmds->commands) + 1;
p = (char *) alloca (idx);
bcopy (cmds->commands, p, idx);
+ idx = 0;
while (*p != '\0')
{
char *end = find_char_unquote (p, '\n', 0);