aboutsummaryrefslogtreecommitdiff
path: root/src/comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c
index d030979..d9e7966 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -736,6 +736,13 @@ component_verify (struct component *comp, grecs_locus_t *locus)
void
component_finish (struct component *comp, grecs_locus_t *locus)
{
+ if (!comp->command)
+ {
+ grecs_error (locus, 0, "%s", _("no 'command' statement"));
+ component_free (comp);
+ return;
+ }
+
if (comp->flags & CF_SHELL)
{
comp->argc = 3;

Return to:

Send suggestions and report system problems to the System administrator.