mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
only add a dummy script name argument for the -R usage, not -r (fixes #814)
This commit is contained in:
parent
940f315b67
commit
e587881c2c
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -560,7 +560,7 @@ sexp run_main (int argc, char **argv) {
|
|||
sym=sexp_intern(ctx, sexp_raw_script_file_symbol, -1), tmp);
|
||||
for (j=argc-1; j>=i; j--)
|
||||
args = sexp_cons(ctx, tmp=sexp_c_string(ctx,argv[j],-1), args);
|
||||
if (main_symbol)
|
||||
if (main_module)
|
||||
args = sexp_cons(ctx, tmp=sexp_c_string(ctx,main_symbol,-1), args);
|
||||
if (args == SEXP_NULL)
|
||||
args = sexp_cons(ctx, tmp=sexp_c_string(ctx,"",-1), args);
|
||||
|
|
Loading…
Add table
Reference in a new issue