aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main.c b/src/main.c
index 11cec84..296a62d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -667,14 +667,15 @@ main(int argc, char **argv)
init();
- /* See comment to cleanup_processor */
- for (arglist = CAR(arglist); arglist; arglist = CDR(arglist)) {
- char *s = (char*)CAR(arglist);
- if (s[0] == '-')
- pp_option(s);
- else if (source(s) == 0)
- yyparse();
- }
+ if (arglist)
+ /* See comment to cleanup_processor */
+ for (arglist = CAR(arglist); arglist; arglist = CDR(arglist)) {
+ char *s = (char*)CAR(arglist);
+ if (s[0] == '-')
+ pp_option(s);
+ else if (source(s) == 0)
+ yyparse();
+ }
argc -= index;
argv += index;

Return to:

Send suggestions and report system problems to the System administrator.