* top.c (build_command_line): Demand arguments for if/while

commands.
This commit is contained in:
Jeff Law
1995-10-03 03:48:32 +00:00
parent 3994972d62
commit a25ffb081f
2 changed files with 8 additions and 0 deletions

View File

@@ -649,6 +649,9 @@ build_command_line (type, args)
{
struct command_line *cmd;
if (args == NULL)
error ("if/while commands require arguments.\n");
cmd = (struct command_line *)xmalloc (sizeof (struct command_line));
cmd->next = NULL;
cmd->control_type = type;