aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/doexec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doexec.c b/src/doexec.c
index a488be13..319f6c29 100644
--- a/src/doexec.c
+++ b/src/doexec.c
@@ -1,6 +1,7 @@
#include <unistd.h>
int main(int argc, char ** argv) {
+ if (argc<2) return 1;
execvp(argv[1], argv + 2);
return 1;
}