diff options
Diffstat (limited to 'libguile/script.c')
-rw-r--r-- | libguile/script.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/script.c b/libguile/script.c index a264106d2..786dc5a68 100644 --- a/libguile/script.c +++ b/libguile/script.c @@ -591,7 +591,7 @@ scm_compile_shell_switches (int argc, char **argv) /* Make any remaining arguments available to the script/command/whatever. */ - scm_set_program_arguments (argc - i, argv + i, argv0); + scm_set_program_arguments (argc ? argc - i : 0, argv + i, argv0); /* If the --emacs switch was set, now is when we process it. */ scm_sysintern ("use-emacs-interface", |