aboutsummaryrefslogtreecommitdiffstats
path: root/make_cmd.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1999-02-19 17:11:39 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:52 +0000
commitb72432fdcc59300c6fe7c9d6c8a31ad3447933f5 (patch)
treeb9899162338c2ff3fd83a8aef8831cb119e85cd7 /make_cmd.c
parentbc4cd23ce958feda898c618215f94d8a4e8f4ffa (diff)
downloadandroid_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.gz
android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.tar.bz2
android_external_bash-b72432fdcc59300c6fe7c9d6c8a31ad3447933f5.zip
Imported from ../bash-2.03.tar.gz.
Diffstat (limited to 'make_cmd.c')
-rw-r--r--make_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/make_cmd.c b/make_cmd.c
index d0991ca..654895f 100644
--- a/make_cmd.c
+++ b/make_cmd.c
@@ -346,6 +346,7 @@ make_cond_command (cond_node)
command->type = cm_cond;
command->redirects = (REDIRECT *)NULL;
command->flags = 0;
+ command->line = cond_node ? cond_node->line : 0;
return (command);
#else
@@ -595,7 +596,7 @@ clean_simple_command (command)
COMMAND *command;
{
if (command->type != cm_simple)
- programming_error ("clean_simple_command: bad command type `%d'", command->type);
+ command_error ("clean_simple_command", CMDERR_BADTYPE, command->type, 0);
else
{
command->value.Simple->words =