X-Git-Url: https://pd.if.org/git/?p=startuptools;a=blobdiff_plain;f=exec.c;h=bd07905b57dfad9eea220d09565a4ed0fcde053f;hp=b8378cec0430ecf36cfa394f010a2609195a0410;hb=HEAD;hpb=26abbac3bbd6231f11a1f9bf0cb0813841984194 diff --git a/exec.c b/exec.c index b8378ce..bd07905 100644 --- a/exec.c +++ b/exec.c @@ -15,6 +15,11 @@ static void do_exec(int skip, int ac, char *av[]) { int i; + if (skip >= ac) { + fprintf(stderr, "nothing to exec\n"); + exit(EXIT_FAILURE); + } + for (i=0;i