* 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

@ -1,3 +1,8 @@
Mon Oct 2 21:45:44 1995 Jeff Law (law@hurl)
* top.c (build_command_line): Demand arguments for if/while
commands.
Mon Oct 2 13:08:01 1995 Jason Molenda (crash@phydeaux.cygnus.com)
* Makefile.in (X11_CFLAGS): Set only to @X_INCDIR@.

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;