diff options
-rw-r--r-- | gram.y | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -213,13 +213,16 @@ main (int argc, char **argv) | |||
213 | read_include (&cw_list, cwfile); | 213 | read_include (&cw_list, cwfile); |
214 | file_list = NULL; | 214 | file_list = NULL; |
215 | read_include (&file_list, optarg); | 215 | read_include (&file_list, optarg); |
216 | for (s = file_list->head; s; s = s->next) | 216 | if (file_list) |
217 | { | 217 | { |
218 | openaliases_prefix (optarg, s->str); | 218 | for (s = file_list->head; s; s = s->next) |
219 | yyparse (); | 219 | { |
220 | file_count++; | 220 | openaliases_prefix (optarg, s->str); |
221 | yyparse (); | ||
222 | file_count++; | ||
223 | } | ||
224 | slist_destroy (&file_list); | ||
221 | } | 225 | } |
222 | slist_destroy (&file_list); | ||
223 | break; | 226 | break; |
224 | 227 | ||
225 | case 'h': | 228 | case 'h': |