(chop_commands): Fix braino in last change (failed to initialize IDX for
authorRoland McGrath <roland@redhat.com>
Thu, 21 Apr 1994 21:28:02 +0000 (21:28 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 21 Apr 1994 21:28:02 +0000 (21:28 +0000)
loop).

commands.c

index 67e59b464bae55807e730a03d6a5c757ff6da51b..7544e51c9dd8f5ac9b8a031c6b47f9da346baee5 100644 (file)
@@ -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);