diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-28 13:30:00 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-28 13:30:00 +0000 |
commit | 860ec4960ff61cf3b2e98e0d020e7f8a93a56008 (patch) | |
tree | 468b96d07fb2bb9369f9f1bf4005ab586e29f5d9 | |
parent | 9f6c44ee0b1f19860351c76d52813319b3029e44 (diff) | |
download | alck-860ec4960ff61cf3b2e98e0d020e7f8a93a56008.tar.gz alck-860ec4960ff61cf3b2e98e0d020e7f8a93a56008.tar.bz2 |
Minor fix
git-svn-id: file:///svnroot/gsc/trunk@296 d2de0444-eb31-0410-8365-af798a554d48
-rw-r--r-- | gram.y | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -210,19 +210,22 @@ main (int argc, char **argv) | |||
210 | 210 | ||
211 | case 'f': | 211 | case 'f': |
212 | if (!cw_list) | 212 | if (!cw_list) |
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': |
226 | usage (); | 229 | usage (); |
227 | exit (0); | 230 | exit (0); |
228 | 231 | ||