diff options
Diffstat (limited to 'src/comp.c')
-rw-r--r-- | src/comp.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; |