Skip to content

Commit 85f152f

Browse files
committed
Restore check for entrypoint argument in transpiled code
1 parent b0bd15a commit 85f152f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/lib/transpile.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ static inline void* stop() {
540540
let main = "
541541
542542
int main(int argc, char *argv[]) {
543+
if (argc < 2) { printf(\"No entrypoint specified\\n\"); return 1; }
543544
program(argv[1], argc-2, argv+2);
544545
return 0;
545546
}

0 commit comments

Comments
 (0)